mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 05:10:41 +00:00
Pass -fstrict-aliasing to the compiler when building a release build on darwin.
Darwin doesn't default to it being on. llvm-svn: 29350
This commit is contained in:
parent
60d02d04dd
commit
ca081a735e
@ -214,13 +214,18 @@ ifdef ENABLE_PROFILING
|
||||
else
|
||||
ifdef ENABLE_OPTIMIZED
|
||||
BuildMode := Release
|
||||
# Don't use -fomit-frame-pointer on FreeBSD
|
||||
# Don't use -fomit-frame-pointer on Darwin or FreeBSD.
|
||||
ifneq ($(OS),FreeBSD)
|
||||
# Don't use -fomit-frame-pointer on Darwin, it breaks backtraces.
|
||||
ifneq ($(OS),Darwin)
|
||||
OmitFramePointer := -fomit-frame-pointer
|
||||
endif
|
||||
endif
|
||||
|
||||
# Darwin requires -fstrict-aliasing to be explicitly enabled.
|
||||
ifeq ($(OS),Darwin)
|
||||
EXTRA_OPTIONS += -fstrict-aliasing
|
||||
endif
|
||||
|
||||
CXX.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||
C.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||
LD.Flags := $(OPTIMIZE_OPTION)
|
||||
@ -251,7 +256,7 @@ LD.Flags += $(LDFLAGS)
|
||||
AR.Flags := cru
|
||||
LibTool.Flags := --tag=CXX
|
||||
|
||||
#Make Floating point ieee complient on alpha
|
||||
# Make Floating point IEEE compliant on Alpha.
|
||||
ifeq ($(ARCH),Alpha)
|
||||
CXX.Flags += -mieee -fPIC
|
||||
CPP.BaseFlags += -mieee -fPIC
|
||||
|
Loading…
Reference in New Issue
Block a user