mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00: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:
parent
6571acffaa
commit
61e4443342
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue