summaryrefslogtreecommitdiffstats
path: root/llvm/Makefile.rules
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-04-20 22:16:40 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-04-20 22:16:40 +0000
commit40c52322a736a2950e711c8bbf536644860fe193 (patch)
treeb0c86b40150c8aedac5a414adc940d67289977b8 /llvm/Makefile.rules
parent80c9ce2c4a295c0e00d1776eb1cc944ec4272541 (diff)
downloadbcm5719-llvm-40c52322a736a2950e711c8bbf536644860fe193.tar.gz
bcm5719-llvm-40c52322a736a2950e711c8bbf536644860fe193.zip
One Mac OS X, just build with -O3 but without -fstrict-aliasing (which is kinda broken).
llvm-svn: 69630
Diffstat (limited to 'llvm/Makefile.rules')
-rw-r--r--llvm/Makefile.rules20
1 files changed, 11 insertions, 9 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index 192f8870792..9324fe62fba 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -229,12 +229,12 @@ endif
CPP.Defines :=
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
# this can be overridden on the make command line.
-# Avoid -O3 on Darwin, there are unresolved issues with
-# -fstrict-aliasing and ipa-type-escape radr://6756684
-ifeq ($(OS), $(filter $(OS), MingW Darwin))
- OPTIMIZE_OPTION := -O2
-else
- OPTIMIZE_OPTION := -O3
+ifndef OPTIMIZE_OPTION
+ ifneq ($(OS),MingW)
+ OPTIMIZE_OPTION := -O3
+ else
+ OPTIMIZE_OPTION := -O2
+ endif
endif
ifeq ($(ENABLE_OPTIMIZED),1)
@@ -247,9 +247,11 @@ ifeq ($(ENABLE_OPTIMIZED),1)
endif
# Darwin requires -fstrict-aliasing to be explicitly enabled.
- ifeq ($(OS),Darwin)
- EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
- endif
+ # Avoid -O3 on Darwin for now, there are unresolved issues with
+ # -fstrict-aliasing and ipa-type-escape radr://6756684
+ #ifeq ($(OS),Darwin)
+ # EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
+ #endif
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
LD.Flags += $(OPTIMIZE_OPTION)
OpenPOWER on IntegriCloud