From ccb75c20c343839bc5841fecf63d19521aea0826 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 11 Sep 2009 15:47:24 +0000 Subject: [PATCH] ... and fix the REQUIRES_RTTI condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81524 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 5f442d36f12..8d1e621845a 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -343,8 +343,8 @@ ifdef REQUIRES_FRAME_POINTER LD.Flags := $(filter-out -fomit-frame-pointer,$(LD.Flags)) endif -# IF REQUIRES_RTTI=1 is specified then don't disable run-time type id -ifndef REQUIRES_RTTI +# 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)) endif