[PATCH] D53778: [CMAKE] Specify all_load when exporting symbols from an executable (macOS)
Chris Bieneman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 29 10:22:31 PDT 2018
beanz added a comment.
Adding `-bundle_loader` in `add_llvm_loadable_module` doesn't work because LLVM modules can be loaded by lots of different tools, so they actually need to be fully self-contained. Obviously if a specific distribution is only supporting the module from one tool that distribution can do things differently, but as a general rule we can't make that assumption.
We could however add a new `add_clang_plugin` function to AddClang.cmake which could make the assumption that clang is your `-bundle_loader`. That would likely meet your needs.
Repository:
rL LLVM
https://reviews.llvm.org/D53778
More information about the llvm-commits
mailing list