[ORC][examples] Export exectuable symbols explicitly in LLJITWithExecutorProcessControl

Functions in static code that should be callable from JITed code must be exported. For dynamic libraries extern functions are exported by default. For exectuables, linkers usually strip them away unless we explicitly ask for keeping them.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D110345
This commit is contained in:
Stefan Gränitz 2021-09-23 21:37:16 +02:00
parent 3fa43da7a3
commit 1286bbc85f
1 changed files with 2 additions and 0 deletions

View File

@ -10,3 +10,5 @@ set(LLVM_LINK_COMPONENTS
add_llvm_example(LLJITWithExecutorProcessControl
LLJITWithExecutorProcessControl.cpp
)
export_executable_symbols(LLJITWithExecutorProcessControl)