epitavy 847acbbc52
[ExceptionDemo] Transition example from MCJIT to ORC and fix errors (#92504)
ExceptionDemo has been broken for some time. This patch fixes the
compilation errors and moves the example from MCJIT to ORC.
2025-01-23 12:40:38 +11:00

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
)