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.
ifeq ($(optimize),yes)
ifeq ($(debug), no)
ifeq ($(comp),clang)
ifeq ($(optimize),yes)
ifeq ($(debug), no)
ifeq ($(comp),clang)
ifneq ($(findstring MINGW,$(KERNEL)),)
CXXFLAGS += -fuse-ld=lld
else ifneq ($(findstring MSYS,$(KERNEL)),)
ifneq ($(findstring MINGW,$(KERNEL)),)
CXXFLAGS += -fuse-ld=lld
else ifneq ($(findstring MSYS,$(KERNEL)),)
LDFLAGS += -save-temps
endif
else
LDFLAGS += -save-temps
endif
else
LDFLAGS += $(CXXFLAGS)
endif
LDFLAGS += $(CXXFLAGS)
endif