1
0
Fork 0
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:
Gian-Carlo Pascutto 2021-02-09 14:05:35 +01:00 committed by Joost VandeVondele
parent 1f87a9eb6c
commit b15e3b3fa9

View file

@ -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