From c61503838535703239fc2904ab75e734da08bac1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Jan 2010 20:21:50 +0000 Subject: [PATCH] libs that need EH need RTTI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94376 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.rules b/Makefile.rules index 6e95998a461..6f75d0475eb 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