[PATCH] D110345: [ORC][examples] Export exectuable symbols explicitly in LLJITWithExecutorProcessControl

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 09:56:05 PDT 2021


sgraenitz created this revision.
sgraenitz added reviewers: xgupta, lhames.
Herald added a subscriber: mgorny.
sgraenitz requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110345

Files:
  llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt


Index: llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
===================================================================
--- llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
+++ llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/CMakeLists.txt
@@ -10,3 +10,5 @@
 add_llvm_example(LLJITWithExecutorProcessControl
   LLJITWithExecutorProcessControl.cpp
   )
+
+export_executable_symbols(LLJITWithExecutorProcessControl)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110345.374596.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210923/36bf0d1a/attachment.bin>


More information about the llvm-commits mailing list