summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-24 20:21:50 +0000
committerChris Lattner <sabre@nondot.org>2010-01-24 20:21:50 +0000
commitc61503838535703239fc2904ab75e734da08bac1 (patch)
treee143c78c2ecb52a68fcc7083d596ef0573e55dcd /Makefile.rules
parentc96d508184cc1a3f2cd16cd7219a2deef75e14c4 (diff)
downloadllvm-c61503838535703239fc2904ab75e734da08bac1.tar.gz
llvm-c61503838535703239fc2904ab75e734da08bac1.tar.bz2
llvm-c61503838535703239fc2904ab75e734da08bac1.tar.xz
libs that need EH need RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 6e95998a46..6f75d0475e 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -374,6 +374,9 @@ endif
# IF REQUIRES_EH=1 is specified then don't disable exceptions
ifndef REQUIRES_EH
CXX.Flags += -fno-exceptions
+else
+ # If the library requires EH, it also requires RTTI.
+ REQUIRES_RTTI := 1
endif
ifdef REQUIRES_FRAME_POINTER