mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
ENABLE_EXPENSIVE_CHECKS shouldn't know how rtti is enabled, let REQUIRES_RTTI handle it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43dc2e6d76
commit
c96d508184
@ -365,6 +365,12 @@ endif
|
|||||||
# CXX.Flags += -fvisibility-inlines-hidden
|
# CXX.Flags += -fvisibility-inlines-hidden
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ifdef ENABLE_EXPENSIVE_CHECKS
|
||||||
|
# GNU libstdc++ uses RTTI if you define _GLIBCXX_DEBUG, which we did above.
|
||||||
|
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160
|
||||||
|
REQUIRES_RTTI := 1
|
||||||
|
endif
|
||||||
|
|
||||||
# IF REQUIRES_EH=1 is specified then don't disable exceptions
|
# IF REQUIRES_EH=1 is specified then don't disable exceptions
|
||||||
ifndef REQUIRES_EH
|
ifndef REQUIRES_EH
|
||||||
CXX.Flags += -fno-exceptions
|
CXX.Flags += -fno-exceptions
|
||||||
@ -468,13 +474,6 @@ ifeq ($(ARCH),Alpha)
|
|||||||
LD.Flags += -Wl,--no-relax
|
LD.Flags += -Wl,--no-relax
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef ENABLE_EXPENSIVE_CHECKS
|
|
||||||
# GNU libstdc++ uses RTTI if you define _GLIBCXX_DEBUG, which we did above.
|
|
||||||
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160
|
|
||||||
CXX.Flags := $(filter-out -fno-rtti,$(CXX.Flags))
|
|
||||||
CXXFLAGS := $(filter-out -fno-rtti,$(CXXFLAGS))
|
|
||||||
endif
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Directory locations
|
# Directory locations
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user