diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-08-27 15:13:14 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-08-27 15:13:14 +0000 |
commit | 251477e91841a689d1c9a80f1229bde37ba657a2 (patch) | |
tree | e2ba47814447f57d60388971e2ee41fdae6a6a56 /examples | |
parent | 7dbe74f4e32e6bd936f792148668a3cf1e3db2af (diff) |
[CMake] Let ExceptionDemo buildable with ENABLE_EH.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/ExceptionDemo/CMakeLists.txt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index f98c403deb0..5727066d622 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -4,7 +4,7 @@ add_subdirectory(HowToUseJIT) add_subdirectory(Kaleidoscope) add_subdirectory(ModuleMaker) -if( ( NOT WIN32 ) AND ( NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM" ) ) +if(LLVM_ENABLE_EH AND (NOT WIN32) AND (NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM")) add_subdirectory(ExceptionDemo) endif() diff --git a/examples/ExceptionDemo/CMakeLists.txt b/examples/ExceptionDemo/CMakeLists.txt index b4354f66f0d..793cf291ca6 100644 --- a/examples/ExceptionDemo/CMakeLists.txt +++ b/examples/ExceptionDemo/CMakeLists.txt @@ -5,14 +5,14 @@ set(LLVM_LINK_COMPONENTS MCJIT RuntimeDyld Support + Target nativecodegen ) # Enable EH and RTTI for this demo -set(LLVM_REQUIRES_EH 1) -set(LLVM_REQUIRES_RTTI 1) - -set(LLVM_BUILD_EXAMPLES OFF) +if(NOT LLVM_ENABLE_EH) + message(FATAL_ERROR "ExceptionDemo must require EH.") +endif() add_llvm_example(ExceptionDemo ExceptionDemo.cpp |