From a5bdc846aa62215dab94630f5854acef0f080b27 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 22 Jul 2014 15:41:18 +0000 Subject: Added LLVM_ENABLE_RTTI and LLVM_ENABLE_EH options that allow RTTI and EH to globally be controlled. Individual targets (e.g. ExceptionDemo) can still override this by using LLVM_REQUIRE_RTTI and LLVM_REQUIRE_EH if they need to be compiled with RTTI or exception handling respectively. llvm-svn: 213663 --- llvm/examples/ExceptionDemo/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/examples/ExceptionDemo') diff --git a/llvm/examples/ExceptionDemo/CMakeLists.txt b/llvm/examples/ExceptionDemo/CMakeLists.txt index 5324acd21ea..a08a7c30bd8 100644 --- a/llvm/examples/ExceptionDemo/CMakeLists.txt +++ b/llvm/examples/ExceptionDemo/CMakeLists.txt @@ -6,7 +6,9 @@ set(LLVM_LINK_COMPONENTS nativecodegen ) +# Enable EH and RTTI for this demo set(LLVM_REQUIRES_EH 1) +set(LLVM_REQUIRES_RTTI 1) add_llvm_example(ExceptionDemo ExceptionDemo.cpp -- cgit v1.2.3