[PATCH] D65295: [opt] Ensure the IR-Linker is available to plugins.
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 10:57:53 PDT 2019
Meinersbur added a comment.
In D65295#1602763 <https://reviews.llvm.org/D65295#1602763>, @beanz wrote:
> The CMake build system option `PLUGIN_TOOL` on `add_llvm_loadable_module` is for this specific purpose, it instructs the link step for the plugin dylib to resolve symbols against the tool.
>
> Polly likely needs to generate different libraries for being a clang plugin vs being an opt plugin, but that is expected and the correct solution to this problem.
Thank you for the hint. I was under the impression that this option was added to allow plugins under Windows. I will try it out.
If this is the proper way, why do we even support `add_llvm_library(${NAME} MODULE` without `PLUGIN_TOOL`?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65295/new/
https://reviews.llvm.org/D65295
More information about the llvm-commits
mailing list