File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -250,10 +250,6 @@ all::
250
250
# DEFAULT_EDITOR='$GIT_FALLBACK_EDITOR',
251
251
# DEFAULT_EDITOR='"C:\Program Files\Vim\gvim.exe" --nofork'
252
252
#
253
- # Define COMPUTE_HEADER_DEPENDENCIES if your compiler supports the -MMD option
254
- # and you want to avoid rebuilding objects when an unrelated header file
255
- # changes.
256
- #
257
253
# Define CHECK_HEADER_DEPENDENCIES to check for problems in the hard-coded
258
254
# dependency rules.
259
255
#
@@ -1242,6 +1238,15 @@ endif
1242
1238
ifdef CHECK_HEADER_DEPENDENCIES
1243
1239
COMPUTE_HEADER_DEPENDENCIES =
1244
1240
USE_COMPUTED_HEADER_DEPENDENCIES =
1241
+ else
1242
+ 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 $$? ')
1246
+ ifeq ($(dep_check ) ,0)
1247
+ COMPUTE_HEADER_DEPENDENCIES =YesPlease
1248
+ endif
1249
+ endif
1245
1250
endif
1246
1251
1247
1252
ifdef COMPUTE_HEADER_DEPENDENCIES
You can’t perform that action at this time.
0 commit comments