1set(LLVM_LINK_COMPONENTS 2 Core 3 ExecutionEngine 4 MC 5 MCJIT 6 RuntimeDyld 7 Support 8 nativecodegen 9 ) 10 11# Enable EH and RTTI for this demo 12set(LLVM_REQUIRES_EH 1) 13set(LLVM_REQUIRES_RTTI 1) 14 15set(LLVM_BUILD_EXAMPLES OFF) 16 17add_llvm_example(ExceptionDemo 18 ExceptionDemo.cpp 19 ) 20 21export_executable_symbols(ExceptionDemo) 22