Skip to content

Commit

Permalink
[examples] Add export_executable_symbols to HowToUseLLJIT example.
Browse files Browse the repository at this point in the history
LLJIT needs access to symbols (e.g. llvm_orc_registerEHFrameSectionWrapper)
that will be defined in the executable when LLVM is linked statically.

Should fix #61712.
  • Loading branch information
lhames committed Mar 26, 2023
1 parent 556600a commit 2ad8e6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/examples/HowToUseLLJIT/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ set(LLVM_LINK_COMPONENTS
add_llvm_example(HowToUseLLJIT
HowToUseLLJIT.cpp
)

export_executable_symbols(HowToUseLLJIT)

0 comments on commit 2ad8e6e

Please sign in to comment.