mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Improve handling of variables set in the make environment
removes duplication on the commandline for example in a profile-build closes https://github.com/official-stockfish/Stockfish/pull/3859 No functional change
This commit is contained in:
parent
1a168201bd
commit
6ede1bed89
1 changed files with 9 additions and 3 deletions
12
src/Makefile
12
src/Makefile
|
@ -345,9 +345,15 @@ endif
|
|||
### ==========================================================================
|
||||
|
||||
### 3.1 Selecting compiler (default = gcc)
|
||||
CXXFLAGS += -Wall -Wcast-qual -fno-exceptions -std=c++17 $(EXTRACXXFLAGS)
|
||||
DEPENDFLAGS += -std=c++17
|
||||
LDFLAGS += $(EXTRALDFLAGS)
|
||||
ifeq ($(MAKELEVEL),0)
|
||||
export ENV_CXXFLAGS := $(CXXFLAGS)
|
||||
export ENV_DEPENDFLAGS := $(DEPENDFLAGS)
|
||||
export ENV_LDFLAGS := $(LDFLAGS)
|
||||
endif
|
||||
|
||||
CXXFLAGS = $(ENV_CXXFLAGS) -Wall -Wcast-qual -fno-exceptions -std=c++17 $(EXTRACXXFLAGS)
|
||||
DEPENDFLAGS = $(ENV_DEPENDFLAGS) -std=c++17
|
||||
LDFLAGS = $(ENV_LDFLAGS) $(EXTRALDFLAGS)
|
||||
|
||||
ifeq ($(COMP),)
|
||||
COMP=gcc
|
||||
|
|
Loading…
Add table
Reference in a new issue