Skip to content
Snippets Groups Projects
Commit 1c33d023 authored by Mike Stump's avatar Mike Stump
Browse files

Avoid -O3 on Darwin for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68455 91177308-0d34-0410-b5e6-96231b3b80d8
parent b5e0a96a
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment