Skip to content

Commit 821b315

Browse files
committed
Merge branch 'da/make-auto-header-dependencies'
* da/make-auto-header-dependencies: Makefile: Improve compiler header dependency check
2 parents 7981458 + 1816bf2 commit 821b315

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,9 +1240,9 @@ COMPUTE_HEADER_DEPENDENCIES =
12401240
USE_COMPUTED_HEADER_DEPENDENCIES =
12411241
else
12421242
ifndef COMPUTE_HEADER_DEPENDENCIES
1243-
dep_check = $(shell sh -c \
1244-
'$(CC) -c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
1245-
echo $$?')
1243+
dep_check = $(shell $(CC) $(ALL_CFLAGS) \
1244+
-c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
1245+
echo $$?)
12461246
ifeq ($(dep_check),0)
12471247
COMPUTE_HEADER_DEPENDENCIES=YesPlease
12481248
endif

0 commit comments

Comments
 (0)