From: Daniel Dunbar Date: Fri, 11 Sep 2009 15:47:24 +0000 (+0000) Subject: ... and fix the REQUIRES_RTTI condition. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ccb75c20c343839bc5841fecf63d19521aea0826;p=oota-llvm.git ... and fix the REQUIRES_RTTI condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81524 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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