[llvm] 2ad8e6e - [examples] Add export_executable_symbols to HowToUseLLJIT example.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 26 11:29:53 PDT 2023


Author: Lang Hames
Date: 2023-03-26T18:27:54Z
New Revision: 2ad8e6e082e254e5560c1c04b20a9904429d8bf0

URL: https://github.com/llvm/llvm-project/commit/2ad8e6e082e254e5560c1c04b20a9904429d8bf0
DIFF: https://github.com/llvm/llvm-project/commit/2ad8e6e082e254e5560c1c04b20a9904429d8bf0.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/examples/HowToUseLLJIT/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/examples/HowToUseLLJIT/CMakeLists.txt b/llvm/examples/HowToUseLLJIT/CMakeLists.txt
index 77a8e8c704cd..3ca99e5598e7 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)


        


More information about the llvm-commits mailing list