From 2ad8e6e082e254e5560c1c04b20a9904429d8bf0 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 26 Mar 2023 18:27:54 +0000 Subject: [PATCH] [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. --- llvm/examples/HowToUseLLJIT/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/examples/HowToUseLLJIT/CMakeLists.txt b/llvm/examples/HowToUseLLJIT/CMakeLists.txt index 77a8e8c..3ca99e5 100644 --- a/llvm/examples/HowToUseLLJIT/CMakeLists.txt +++ b/llvm/examples/HowToUseLLJIT/CMakeLists.txt @@ -8,3 +8,5 @@ set(LLVM_LINK_COMPONENTS add_llvm_example(HowToUseLLJIT HowToUseLLJIT.cpp ) + +export_executable_symbols(HowToUseLLJIT) -- 2.7.4