aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-04-06 19:58:11 +0000
committerMike Stump <mrs@apple.com>2009-04-06 19:58:11 +0000
commit1c33d023715c8f97857f2b2dc18e413be77c6b84 (patch)
tree2b53d14dd6beea4f7d33b6414c8a4154842bb4e0
parentb5e0a96a8d05b29b14ec90ba3dca0c2bd015c534 (diff)
Avoid -O3 on Darwin for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68455 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index a8af0b7e73..e6c266af7f 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -229,10 +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.
-ifneq ($(OS),MingW)
- OPTIMIZE_OPTION := -O3
-else
+# 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
endif
ifdef ENABLE_PROFILING