diff options
author | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-09-23 21:37:16 +0200 |
---|---|---|
committer | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-09-23 21:40:06 +0200 |
commit | 1286bbc85f421dbdcab430674783bde17b15ba0d (patch) | |
tree | 53621b27c4e0c6a7aa3312fdc903f91f4ab30455 | |
parent | 3fa43da7a3b46169b731dfca2bf3d41e85d3769d (diff) | |
download | llvm-1286bbc85f421dbdcab430674783bde17b15ba0d.zip llvm-1286bbc85f421dbdcab430674783bde17b15ba0d.tar.gz llvm-1286bbc85f421dbdcab430674783bde17b15ba0d.tar.bz2 |
[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
-rw-r--r-- | llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt index 47f50ca..65a5b1b 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt +++ b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt @@ -10,3 +10,5 @@ set(LLVM_LINK_COMPONENTS add_llvm_example(LLJITWithExecutorProcessControl LLJITWithExecutorProcessControl.cpp ) + +export_executable_symbols(LLJITWithExecutorProcessControl) |