diff options
author | Dan Liew <dan@su-root.co.uk> | 2014-07-22 15:41:18 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2014-07-22 15:41:18 +0000 |
commit | a5bdc846aa62215dab94630f5854acef0f080b27 (patch) | |
tree | b6fd5897d61aef157534a07b58defe224578ad10 /llvm/examples/ExceptionDemo | |
parent | 521237cad6b82e8f8bd340410e275474672838ba (diff) | |
download | bcm5719-llvm-a5bdc846aa62215dab94630f5854acef0f080b27.tar.gz bcm5719-llvm-a5bdc846aa62215dab94630f5854acef0f080b27.zip |
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
Diffstat (limited to 'llvm/examples/ExceptionDemo')
-rw-r--r-- | llvm/examples/ExceptionDemo/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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 |