[llvm] [Offload] Do not link every target for JIT (PR #92013)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 09:35:00 PDT 2024
jhuber6 wrote:
> The problem with this patch is, you will end up with undefined symbols if you just link the corresponding target. For example, the LLVM was built with target AMDGPU and NVPTX. So when `PluginCommon` is compiled, the code for initializing both are enabled. However, when you eventually link AMDGPU plugin, you only link against AMDGPU. That will leave those NVPTX initialization code undefined symbols.
I don't understand, it builds perfectly fine after a clean build?
https://github.com/llvm/llvm-project/pull/92013
More information about the llvm-commits
mailing list