diff options
author | Jay Foad <jay.foad@gmail.com> | 2009-05-15 18:13:31 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2009-05-15 18:13:31 +0000 |
commit | e609ab00a5d8bca21f02181c6b20593437be8438 (patch) | |
tree | dff950bcf14f8260e50de950c6b0b058f90f24d9 | |
parent | 12c3a5cedfed8f36898991c09d4ab85d3a60b2d2 (diff) | |
download | bcm5719-llvm-e609ab00a5d8bca21f02181c6b20593437be8438.tar.gz bcm5719-llvm-e609ab00a5d8bca21f02181c6b20593437be8438.zip |
Work around the fact that GNU libstdc++'s debug mode uses RTTI.
llvm-svn: 71871
-rw-r--r-- | llvm/Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 41694bd1ff1..23ffe3ea960 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -375,6 +375,12 @@ ifeq ($(OS),MingW) endif endif +ifdef ENABLE_EXPENSIVE_CHECKS + # GNU libstdc++ uses RTTI if you define _GLIBCXX_DEBUG, which we did above. + # See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40160 + CXX.Flags := $(filter-out -fno-rtti,$(CXX.Flags)) +endif + #-------------------------------------------------------------------- # Directory locations #-------------------------------------------------------------------- |