2013-12-10 12:13:32 +01:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Core
|
|
|
|
ExecutionEngine
|
2014-10-31 16:27:16 +01:00
|
|
|
MC
|
2013-12-10 12:13:32 +01:00
|
|
|
MCJIT
|
2015-03-31 02:03:36 +02:00
|
|
|
RuntimeDyld
|
2013-12-10 12:13:32 +01:00
|
|
|
Support
|
2015-08-27 17:13:14 +02:00
|
|
|
Target
|
2013-12-10 12:13:32 +01:00
|
|
|
nativecodegen
|
|
|
|
)
|
|
|
|
|
2014-07-22 17:41:18 +02:00
|
|
|
# Enable EH and RTTI for this demo
|
2015-08-27 17:13:14 +02:00
|
|
|
if(NOT LLVM_ENABLE_EH)
|
|
|
|
message(FATAL_ERROR "ExceptionDemo must require EH.")
|
|
|
|
endif()
|
2015-03-31 02:03:43 +02:00
|
|
|
|
2010-02-10 00:22:43 +01:00
|
|
|
add_llvm_example(ExceptionDemo
|
|
|
|
ExceptionDemo.cpp
|
|
|
|
)
|
2013-04-26 21:07:40 +02:00
|
|
|
|
2015-03-18 21:09:13 +01:00
|
|
|
export_executable_symbols(ExceptionDemo)
|