From 8bd1c8de0e4432cc0acb093e5d8901c0e73b8beb Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 18 Dec 2013 14:53:46 -0700 Subject: [PATCH] only enable LTO if use-lto is true When using clang, as with GCC, we shouldn't use LTO if the developer has specified use-lto=false. --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index fc3495cef9..10e86af22e 100755 --- a/makefile +++ b/makefile @@ -304,7 +304,7 @@ cflags_debug_fast = -O0 -g3 cflags_stress = -O0 -g3 cflags_stress_major = -O0 -g3 ifeq ($(use-clang),true) - cflags_fast = -O3 -flto -g3 + cflags_fast = -O3 -g3 cflags_small = -Oz -g3 else cflags_fast = -O3 -g3 @@ -472,6 +472,7 @@ endif ifeq ($(ios),true) cflags += -DAVIAN_IOS + use-lto = false endif ifeq ($(build-platform),darwin)