diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-24 20:43:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-24 20:43:08 +0000 |
commit | e9a40677cd1fd95ed7e9b75a1df19449f432ad9e (patch) | |
tree | 97548e9472c7523c5cfb0ceb63304b2c65daceed /Makefile.rules | |
parent | 9012b32b210db8ef79e17a3d8232458a4ec0e423 (diff) | |
download | external_llvm-e9a40677cd1fd95ed7e9b75a1df19449f432ad9e.zip external_llvm-e9a40677cd1fd95ed7e9b75a1df19449f432ad9e.tar.gz external_llvm-e9a40677cd1fd95ed7e9b75a1df19449f432ad9e.tar.bz2 |
make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules index 6f75d04..79a2e01 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -386,9 +386,9 @@ ifdef REQUIRES_FRAME_POINTER endif # If REQUIRES_RTTI=1 is specified then don't disable run-time type id. -ifeq ($(REQUIRES_RTTI), 1) - CXX.Flags := $(filter-out -fno-rtti,$(CXX.Flags)) - CXXFLAGS := $(filter-out -fno-rtti,$(CXXFLAGS)) +ifneq ($(REQUIRES_RTTI), 1) + CXX.Flags += -fno-rtti + CXXFLAGS += -fno-rtti endif ifdef ENABLE_COVERAGE |