mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43: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 ($(optimize),yes)
|
||||||
ifeq ($(debug), no)
|
ifeq ($(debug), no)
|
||||||
ifeq ($(comp),clang)
|
ifeq ($(comp),clang)
|
||||||
CXXFLAGS += -flto=thin
|
CXXFLAGS += -flto
|
||||||
ifneq ($(findstring MINGW,$(KERNEL)),)
|
ifneq ($(findstring MINGW,$(KERNEL)),)
|
||||||
CXXFLAGS += -fuse-ld=lld
|
CXXFLAGS += -fuse-ld=lld
|
||||||
else ifneq ($(findstring MSYS,$(KERNEL)),)
|
else ifneq ($(findstring MSYS,$(KERNEL)),)
|
||||||
|
@ -610,7 +610,7 @@ ifeq ($(debug), no)
|
||||||
LDFLAGS += -save-temps
|
LDFLAGS += -save-temps
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
CXXFLAGS += -flto=thin
|
CXXFLAGS += -flto
|
||||||
LDFLAGS += $(CXXFLAGS)
|
LDFLAGS += $(CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue