Skip to content

Commit

Permalink
Merge branch 'da/make-auto-header-dependencies'
Browse files Browse the repository at this point in the history
* da/make-auto-header-dependencies:
  Makefile: Improve compiler header dependency check
  • Loading branch information
Junio C Hamano committed Oct 5, 2011
2 parents 7981458 + 1816bf2 commit 821b315
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1240,9 +1240,9 @@ COMPUTE_HEADER_DEPENDENCIES =
USE_COMPUTED_HEADER_DEPENDENCIES =
else
ifndef COMPUTE_HEADER_DEPENDENCIES
dep_check = $(shell sh -c \
'$(CC) -c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
echo $$?')
dep_check = $(shell $(CC) $(ALL_CFLAGS) \
-c -MF /dev/null -MMD -MP -x c /dev/null -o /dev/null 2>&1; \
echo $$?)
ifeq ($(dep_check),0)
COMPUTE_HEADER_DEPENDENCIES=YesPlease
endif
Expand Down

0 comments on commit 821b315

Please sign in to comment.