mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 17:49:35 +00:00
Revert to -O3 with Clang
Instead of -O4 option that does not work with both mingw and Linux gcc (tested with Clang 3.1). As reported by Reed Kotler: Turns out that -O4 is not a valid option for clang unless you have the proper gold linker and plugins built. That's because -O4 enables LTO, which writes out bitcode files during the compile, and then loads those and optimizes them during the link phase. It requires a linker that supports LLVM's LTO. There is a plugin for Gold available as part of LLVM. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
0b3ffb54b7
commit
089e54c7fd
1 changed files with 2 additions and 1 deletions
|
@ -270,7 +270,8 @@ ifeq ($(optimize),yes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),clang)
|
ifeq ($(comp),clang)
|
||||||
CXXFLAGS += -O4
|
### -O4 requires a linker that supports LLVM's LTO
|
||||||
|
CXXFLAGS += -O3
|
||||||
|
|
||||||
ifeq ($(os),osx)
|
ifeq ($(os),osx)
|
||||||
ifeq ($(arch),i386)
|
ifeq ($(arch),i386)
|
||||||
|
|
Loading…
Add table
Reference in a new issue