[ORC][examples] Export exectuable symbols explicitly in LLJITWithExecutorProcessControl
authorStefan Gränitz <stefan.graenitz@gmail.com>
Thu, 23 Sep 2021 19:37:16 +0000 (21:37 +0200)
committerStefan Gränitz <stefan.graenitz@gmail.com>
Thu, 23 Sep 2021 19:40:06 +0000 (21:40 +0200)
commit1286bbc85f421dbdcab430674783bde17b15ba0d
tree53621b27c4e0c6a7aa3312fdc903f91f4ab30455
parent3fa43da7a3b46169b731dfca2bf3d41e85d3769d
[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
llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt