mirror of
https://github.com/sockspls/badfish
synced 2025-06-28 00:19:50 +00:00
Invoke .depend only on build targets
Add a constraint so that the dependency build only occurs when users actually run build tasks. This fixes a bug on some systems where gcc/g++ is not available. closes https://github.com/official-stockfish/Stockfish/pull/4255 No functional change
This commit is contained in:
parent
cb0c7a9848
commit
74fb936dbd
1 changed files with 3 additions and 1 deletions
|
@ -512,7 +512,7 @@ endif
|
||||||
|
|
||||||
### Sometimes gcc is really clang
|
### Sometimes gcc is really clang
|
||||||
ifeq ($(COMP),gcc)
|
ifeq ($(COMP),gcc)
|
||||||
gccversion = $(shell $(CXX) --version)
|
gccversion = $(shell $(CXX) --version 2>/dev/null)
|
||||||
gccisclang = $(findstring clang,$(gccversion))
|
gccisclang = $(findstring clang,$(gccversion))
|
||||||
ifneq ($(gccisclang),)
|
ifneq ($(gccisclang),)
|
||||||
profile_make = clang-profile-make
|
profile_make = clang-profile-make
|
||||||
|
@ -1006,4 +1006,6 @@ icc-profile-use:
|
||||||
.depend: $(SRCS)
|
.depend: $(SRCS)
|
||||||
-@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null
|
-@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null
|
||||||
|
|
||||||
|
ifneq (, $(filter $(MAKECMDGOALS), build profile-build))
|
||||||
-include .depend
|
-include .depend
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue