Kaydet (Commit) 5b1d2fd1 authored tarafından Peter Foley's avatar Peter Foley

more lto fixes

Change-Id: I97eb27a354dfb6b6d94886729c5b6df0b0f7687a
üst d79bdca7
...@@ -108,7 +108,7 @@ gb_CXXFLAGS_COMMON += -DLIBO_MERGELIBS ...@@ -108,7 +108,7 @@ gb_CXXFLAGS_COMMON += -DLIBO_MERGELIBS
endif endif
ifeq ($(ENABLE_LTO),TRUE) ifeq ($(ENABLE_LTO),TRUE)
gb_Library_LTOFLAGS := -flto gb_Library_LTOFLAGS := -flto -fno-use-linker-plugin
endif endif
gb_LinkTarget_EXCEPTIONFLAGS := \ gb_LinkTarget_EXCEPTIONFLAGS := \
......
...@@ -104,11 +104,12 @@ gb_CXXFLAGS += -Wno-deprecated-declarations ...@@ -104,11 +104,12 @@ gb_CXXFLAGS += -Wno-deprecated-declarations
endif endif
endif endif
ifeq ($(ENABLE_LTO),TRUE) # Breaks the build, needs more testing
ifneq ($(COM_GCC_IS_CLANG),TRUE) #ifeq ($(ENABLE_LTO),TRUE)
gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS) #ifneq ($(COM_GCC_IS_CLANG),TRUE)
endif #gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS)
endif #endif
#endif
ifneq ($(strip $(SYSBASE)),) ifneq ($(strip $(SYSBASE)),)
gb_CXXFLAGS += --sysroot=$(SYSBASE) gb_CXXFLAGS += --sysroot=$(SYSBASE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment