llvm.org GIT mirror llvm / 251477e
[CMake] Let ExceptionDemo buildable with ENABLE_EH. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246152 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
33 add_subdirectory(Kaleidoscope)
44 add_subdirectory(ModuleMaker)
55
6 if( ( NOT WIN32 ) AND ( NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM" ) )
6 if(LLVM_ENABLE_EH AND (NOT WIN32) AND (NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM"))
77 add_subdirectory(ExceptionDemo)
88 endif()
99
44 MCJIT
55 RuntimeDyld
66 Support
7 Target
78 nativecodegen
89 )
910
1011 # Enable EH and RTTI for this demo
11 set(LLVM_REQUIRES_EH 1)
12 set(LLVM_REQUIRES_RTTI 1)
13
14 set(LLVM_BUILD_EXAMPLES OFF)
12 if(NOT LLVM_ENABLE_EH)
13 message(FATAL_ERROR "ExceptionDemo must require EH.")
14 endif()
1515
1616 add_llvm_example(ExceptionDemo
1717 ExceptionDemo.cpp