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 | 43b5f9312d56be400af031f7487a99b75b7b0f97 (patch) | |
tree | 97548e9472c7523c5cfb0ceb63304b2c65daceed /Makefile.rules | |
parent | c0f8a361f5dc93f0817411ef17af57b0d3fe60b6 (diff) | |
download | llvm-43b5f9312d56be400af031f7487a99b75b7b0f97.tar.gz llvm-43b5f9312d56be400af031f7487a99b75b7b0f97.tar.bz2 llvm-43b5f9312d56be400af031f7487a99b75b7b0f97.tar.xz |
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 6f75d0475e..79a2e0165a 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 |