mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Avoid use of -fomit-frame-pointer on FreeBSD platforms. It causes thrown
exceptions to abort() in cases where it should not. Many thanks to Duraid Madina for doing the heavy lifting on the analysis of this problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a1e5c09bb
commit
325a87e3fd
@ -180,6 +180,7 @@ install-bytecode:: install-bytecode-local
|
|||||||
# Variables derived from configuration we are building
|
# Variables derived from configuration we are building
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
ifdef ENABLE_PROFILING
|
ifdef ENABLE_PROFILING
|
||||||
BuildMode := Profile
|
BuildMode := Profile
|
||||||
CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
|
CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
|
||||||
@ -188,9 +189,13 @@ ifdef ENABLE_PROFILING
|
|||||||
else
|
else
|
||||||
ifdef ENABLE_OPTIMIZED
|
ifdef ENABLE_OPTIMIZED
|
||||||
BuildMode := Release
|
BuildMode := Release
|
||||||
CXX.Flags := -O3 -DNDEBUG -finline-functions \
|
# Don't use -fomit-frame-pointer on FreeBSD
|
||||||
-felide-constructors -fomit-frame-pointer
|
ifneq ($(OS),FreeBSD)
|
||||||
C.Flags := -O3 -DNDEBUG -fomit-frame-pointer
|
OmitFramePointer := -fomit-frame-pointer
|
||||||
|
endif
|
||||||
|
CXX.Flags := -O3 -DNDEBUG -finline-functions -felide-constructors \
|
||||||
|
$(OmitFramePointer)
|
||||||
|
C.Flags := -O3 -DNDEBUG $(OmitFramePointer)
|
||||||
LD.Flags := -O3 -DNDEBUG
|
LD.Flags := -O3 -DNDEBUG
|
||||||
else
|
else
|
||||||
BuildMode := Debug
|
BuildMode := Debug
|
||||||
|
Loading…
Reference in New Issue
Block a user