git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246152
91177308-0d34-0410-b5e6-
96231b3b80d8
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()
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