Lang Hames 2ad8e6e082 [examples] Add export_executable_symbols to HowToUseLLJIT example.
LLJIT needs access to symbols (e.g. llvm_orc_registerEHFrameSectionWrapper)
that will be defined in the executable when LLVM is linked statically.

Should fix https://github.com/llvm/llvm-project/issues/61712.
2023-03-26 18:27:54 +00:00

13 lines
169 B
CMake

set(LLVM_LINK_COMPONENTS
Core
OrcJIT
Support
nativecodegen
)
add_llvm_example(HowToUseLLJIT
HowToUseLLJIT.cpp
)
export_executable_symbols(HowToUseLLJIT)