mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Disable ThinLTO when using Clang.
Benchmarking with current Clang 12 shows that and ThinLTO is a pessimization, see issue #3341. closes https://github.com/official-stockfish/Stockfish/pull/3345 No functional change.
This commit is contained in:
parent
1f87a9eb6c
commit
b15e3b3fa9
1 changed files with 2 additions and 2 deletions
|
@ -590,7 +590,7 @@ endif
|
|||
ifeq ($(optimize),yes)
|
||||
ifeq ($(debug), no)
|
||||
ifeq ($(comp),clang)
|
||||
CXXFLAGS += -flto=thin
|
||||
CXXFLAGS += -flto
|
||||
ifneq ($(findstring MINGW,$(KERNEL)),)
|
||||
CXXFLAGS += -fuse-ld=lld
|
||||
else ifneq ($(findstring MSYS,$(KERNEL)),)
|
||||
|
@ -610,7 +610,7 @@ ifeq ($(debug), no)
|
|||
LDFLAGS += -save-temps
|
||||
endif
|
||||
else
|
||||
CXXFLAGS += -flto=thin
|
||||
CXXFLAGS += -flto
|
||||
LDFLAGS += $(CXXFLAGS)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue