From f0c55a9b9797855a4c488c7a6a97d336a5bafd8e Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sun, 17 Oct 2010 02:26:16 +0000 Subject: Build with RTTI and exceptions disabled. Only in GCC for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116682 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CMakeLists.txt | 3 +++ lib/System/CMakeLists.txt | 5 +++++ lib/VMCore/CMakeLists.txt | 2 ++ 3 files changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index f7e02c9..c9c862c 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -1,3 +1,6 @@ +## FIXME: This only requires RTTI because tblgen uses it. Fix that. +set(LLVM_REQUIRES_RTTI 1) + add_llvm_library(LLVMSupport APFloat.cpp APInt.cpp diff --git a/lib/System/CMakeLists.txt b/lib/System/CMakeLists.txt index 5c15f8e..ac2830e 100644 --- a/lib/System/CMakeLists.txt +++ b/lib/System/CMakeLists.txt @@ -1,3 +1,8 @@ +set(LLVM_REQUIRES_RTTI 1) +if( MINGW ) + set(LLVM_REQUIRES_EH 1) +endif() + add_llvm_library(LLVMSystem Alarm.cpp Atomic.cpp diff --git a/lib/VMCore/CMakeLists.txt b/lib/VMCore/CMakeLists.txt index 1388c93..0ff260f 100644 --- a/lib/VMCore/CMakeLists.txt +++ b/lib/VMCore/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_REQUIRES_RTTI 1) + add_llvm_library(LLVMCore AsmWriter.cpp Attributes.cpp -- cgit v1.1