mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Re-add link time optimization on OS X
In the new version of clang, -O4 does not imply -flto, so we set the flag
This commit is contained in:
committed by
Marco Costalba
parent
6571acffaa
commit
61e4443342
@@ -271,14 +271,10 @@ ifeq ($(optimize),yes)
|
||||
endif
|
||||
|
||||
ifeq ($(comp),clang)
|
||||
ifeq ($(os),osx)
|
||||
# Clang on OS X supports LTO
|
||||
CXXFLAGS += -O4
|
||||
else
|
||||
CXXFLAGS += -O3
|
||||
endif
|
||||
CXXFLAGS += -O3
|
||||
|
||||
ifeq ($(os),osx)
|
||||
CXXFLAGS += -flto
|
||||
ifeq ($(arch),i386)
|
||||
CXXFLAGS += -mdynamic-no-pic
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user