[examples] Add export_executable_symbols to HowToUseLLJIT example.
authorLang Hames <lhames@gmail.com>
Sun, 26 Mar 2023 18:27:54 +0000 (18:27 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 26 Mar 2023 18:27:54 +0000 (18:27 +0000)
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.

llvm/examples/HowToUseLLJIT/CMakeLists.txt

index 77a8e8c..3ca99e5 100644 (file)
@@ -8,3 +8,5 @@ set(LLVM_LINK_COMPONENTS
 add_llvm_example(HowToUseLLJIT
   HowToUseLLJIT.cpp
   )
+
+export_executable_symbols(HowToUseLLJIT)