Skip to content

Commit 86bb5c8

Browse files
author
Kevin Pyle
committed
Generate EXTRA_CFLAGS before recursing into gcc-c-api
Rules in gcc-c-api assume the available of autogenerated-EXTRA_CFLAGS.txt, so ensure it is generated before recursing into gcc-c-api, even in highly parallel workloads.
1 parent c33eb32 commit 86bb5c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,12 @@ $(PLUGIN_DSO): $(PLUGIN_OBJECT_FILES) $(LIBGCC_C_API_SO)
150150
$(LIBS) \
151151
-lgcc-c-api -Lgcc-c-api -Wl,-rpath=$(GCCPLUGINS_DIR)
152152

153-
$(LIBGCC_C_API_SO):
153+
.PHONY: gcc-c-api/phony-stamp-gcc-api
154+
gcc-c-api/phony-stamp-gcc-api: autogenerated-EXTRA_CFLAGS.txt
154155
$(MAKE) -C gcc-c-api libgcc-c-api.so CC="$(CC)" TARGET_GCC="$(TARGET_GCC)"
155156

157+
$(LIBGCC_C_API_SO): gcc-c-api/phony-stamp-gcc-api
158+
156159
$(PLUGIN_OBJECT_GENERATED_FILES): CPPFLAGS+= $(if $(srcdir),-I$(srcdir))
157160

158161
# This is the standard .c->.o recipe, but it needs to be stated

0 commit comments

Comments
 (0)