Merge branch 'da/make-auto-header-dependencies'
* da/make-auto-header-dependencies: Makefile: Improve compiler header dependency checkmaint
commit
821b315ebe
6
Makefile
6
Makefile
|
|
@ -1240,9 +1240,9 @@ COMPUTE_HEADER_DEPENDENCIES =
|
||||||
USE_COMPUTED_HEADER_DEPENDENCIES =
|
USE_COMPUTED_HEADER_DEPENDENCIES =
|
||||||
else
|
else
|
||||||
ifndef COMPUTE_HEADER_DEPENDENCIES
|
ifndef COMPUTE_HEADER_DEPENDENCIES
|
||||||
dep_check = $(shell sh -c \
|
dep_check = $(shell $(CC) $(ALL_CFLAGS) \
|
||||||
'$(CC) -c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
|
-c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
|
||||||
echo $$?')
|
echo $$?)
|
||||||
ifeq ($(dep_check),0)
|
ifeq ($(dep_check),0)
|
||||||
COMPUTE_HEADER_DEPENDENCIES=YesPlease
|
COMPUTE_HEADER_DEPENDENCIES=YesPlease
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue