Kaydet (Commit) 0d26fc8f authored tarafından Matúš Kukan's avatar Matúš Kukan

Tweak lto flags for gcc.

Change-Id: I490029f0727e060fdfdfc6e9adccd058b24e6b86
üst cc493da6
......@@ -103,7 +103,11 @@ gb_CXXFLAGS_COMMON += -DLIBO_MERGELIBS
endif
ifeq ($(ENABLE_LTO),TRUE)
ifeq ($(COM_GCC_IS_CLANG),TRUE)
gb_LTOFLAGS := -flto
else
gb_LTOFLAGS := -flto -fuse-linker-plugin -O2
endif
endif
gb_LinkTarget_EXCEPTIONFLAGS := \
......
......@@ -96,12 +96,6 @@ gb_CXXFLAGS += -Wno-deprecated-declarations
endif
endif
ifeq ($(ENABLE_LTO),TRUE)
ifneq ($(COM_GCC_IS_CLANG),TRUE)
gb_LTOFLAGS += -fuse-linker-plugin $(gb_COMPILERDEFAULTOPTFLAGS)
endif
endif
ifneq ($(strip $(SYSBASE)),)
gb_CXXFLAGS += --sysroot=$(SYSBASE)
gb_CFLAGS += --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