Don't touch CXXFLAGS. If it's set in the environment then sub-makes will see
authorNick Lewycky <nicholas@mxc.ca>
Sat, 24 Apr 2010 04:56:34 +0000 (04:56 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 24 Apr 2010 04:56:34 +0000 (04:56 +0000)
the variable that we set as though it came from the user. Fixes PR6835.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102239 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 0c8469a3133c261b58e0a4aa60876bd75de23d79..ba4fd3a30eb6ec8e2d01b92908ab6c3f794e0f8c 100644 (file)
@@ -388,7 +388,6 @@ endif
 # If REQUIRES_RTTI=1 is specified then don't disable run-time type id.
 ifneq ($(REQUIRES_RTTI), 1)
   CXX.Flags += -fno-rtti
-  CXXFLAGS += -fno-rtti
 endif
 
 ifdef ENABLE_COVERAGE