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 | 188e6476c50df52dc04782e1d2cb97ea4d5835a8 (patch) | |
tree | ed71ee786ddaafa4a5fa0876bb29fa307b7d3c43 /Makefile.rules | |
parent | 1eb08f5e81a73e7ff122206ad9368f83ad0830bb (diff) | |
download | external_llvm-188e6476c50df52dc04782e1d2cb97ea4d5835a8.zip external_llvm-188e6476c50df52dc04782e1d2cb97ea4d5835a8.tar.gz external_llvm-188e6476c50df52dc04782e1d2cb97ea4d5835a8.tar.bz2 |
Work around the fact that GNU libstdc++'s debug mode uses RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 41694bd..23ffe3e 100644 --- a/Makefile.rules +++ b/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 #-------------------------------------------------------------------- |