
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.
13 lines
169 B
CMake
13 lines
169 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
OrcJIT
|
|
Support
|
|
nativecodegen
|
|
)
|
|
|
|
add_llvm_example(HowToUseLLJIT
|
|
HowToUseLLJIT.cpp
|
|
)
|
|
|
|
export_executable_symbols(HowToUseLLJIT)
|