From 61e44433426296dc388e75c864522580ec4ba3a5 Mon Sep 17 00:00:00 2001 From: Daylen Yang Date: Thu, 13 Mar 2014 22:09:29 -0700 Subject: [PATCH] Re-add link time optimization on OS X In the new version of clang, -O4 does not imply -flto, so we set the flag --- src/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Makefile b/src/Makefile index 9b8e926a..dbf81435 100644 --- a/src/Makefile +++ b/src/Makefile @@ -271,14 +271,10 @@ ifeq ($(optimize),yes) endif ifeq ($(comp),clang) - ifeq ($(os),osx) - # Clang on OS X supports LTO - CXXFLAGS += -O4 - else - CXXFLAGS += -O3 - endif + CXXFLAGS += -O3 ifeq ($(os),osx) + CXXFLAGS += -flto ifeq ($(arch),i386) CXXFLAGS += -mdynamic-no-pic endif -- 2.39.2