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
endif
ifeq ($(ENABLE_LTO),TRUE)
gb_Library_LTOFLAGS := -flto
gb_Library_LTOFLAGS := -flto -fno-use-linker-plugin
endif
gb_LinkTarget_EXCEPTIONFLAGS := \
......
......@@ -104,11 +104,12 @@ gb_CXXFLAGS += -Wno-deprecated-declarations
endif
endif
ifeq ($(ENABLE_LTO),TRUE)
ifneq ($(COM_GCC_IS_CLANG),TRUE)
gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS)
endif
endif
# Breaks the build, needs more testing
#ifeq ($(ENABLE_LTO),TRUE)
#ifneq ($(COM_GCC_IS_CLANG),TRUE)
#gb_LinkTarget_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS)
#endif
#endif
ifneq ($(strip $(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