libs that need EH need RTTI.
authorChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 20:21:50 +0000 (20:21 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 20:21:50 +0000 (20:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94376 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 6e95998a461880c4532eeb5449268b638e1cab33..6f75d0475eb2071a54d278db4aae5d2cacca65df 100644 (file)
@@ -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