mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
One Mac OS X, just build with -O3 but without -fstrict-aliasing (which is kinda broken).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7f2a9e69f
commit
b306e38a2e
@ -229,12 +229,12 @@ endif
|
|||||||
CPP.Defines :=
|
CPP.Defines :=
|
||||||
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
|
# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with
|
||||||
# this can be overridden on the make command line.
|
# this can be overridden on the make command line.
|
||||||
# Avoid -O3 on Darwin, there are unresolved issues with
|
ifndef OPTIMIZE_OPTION
|
||||||
# -fstrict-aliasing and ipa-type-escape radr://6756684
|
ifneq ($(OS),MingW)
|
||||||
ifeq ($(OS), $(filter $(OS), MingW Darwin))
|
OPTIMIZE_OPTION := -O3
|
||||||
OPTIMIZE_OPTION := -O2
|
else
|
||||||
else
|
OPTIMIZE_OPTION := -O2
|
||||||
OPTIMIZE_OPTION := -O3
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_OPTIMIZED),1)
|
ifeq ($(ENABLE_OPTIMIZED),1)
|
||||||
@ -247,9 +247,11 @@ ifeq ($(ENABLE_OPTIMIZED),1)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Darwin requires -fstrict-aliasing to be explicitly enabled.
|
# Darwin requires -fstrict-aliasing to be explicitly enabled.
|
||||||
ifeq ($(OS),Darwin)
|
# Avoid -O3 on Darwin for now, there are unresolved issues with
|
||||||
EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
|
# -fstrict-aliasing and ipa-type-escape radr://6756684
|
||||||
endif
|
#ifeq ($(OS),Darwin)
|
||||||
|
# EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
|
||||||
|
#endif
|
||||||
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||||
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||||
LD.Flags += $(OPTIMIZE_OPTION)
|
LD.Flags += $(OPTIMIZE_OPTION)
|
||||||
|
@ -161,7 +161,7 @@ cd $DIR/obj-llvm || exit 1
|
|||||||
make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
|
make $LOCAL_MAKEFLAGS $OPTIMIZE_OPTS UNIVERSAL=1 UNIVERSAL_ARCH="$TARGETS" \
|
||||||
LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
|
LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \
|
||||||
LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
|
LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \
|
||||||
OPTIMIZE_OPTION='-O2' VERBOSE=1 install
|
OPTIMIZE_OPTION='-O3' VERBOSE=1 install
|
||||||
|
|
||||||
if ! test $? == 0 ; then
|
if ! test $? == 0 ; then
|
||||||
echo "error: LLVM 'make install' failed!"
|
echo "error: LLVM 'make install' failed!"
|
||||||
|
Loading…
Reference in New Issue
Block a user