mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 10:36:07 +00:00

ExceptionDemo has been broken for some time. This patch fixes the compilation errors and moves the example from MCJIT to ORC.
20 lines
295 B
CMake
20 lines
295 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
ExecutionEngine
|
|
ORCJIT
|
|
Support
|
|
Target
|
|
nativecodegen
|
|
)
|
|
|
|
# Enable EH and RTTI for this demo
|
|
if(NOT LLVM_ENABLE_EH)
|
|
message(FATAL_ERROR "ExceptionDemo must require EH.")
|
|
endif()
|
|
|
|
add_llvm_example(ExceptionDemo
|
|
ExceptionDemo.cpp
|
|
|
|
EXPORT_SYMBOLS
|
|
)
|