[llvm] [offload] - Fix issue with standalone debug offload build (PR #104647)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 18:56:04 PDT 2024
jhuber6 wrote:
> For `libomptarget.so` the plugin archives are linked in which have a dependency on PluginCommon and by design the extra archives. add_llvm_library does add `libLLVM.so` in the cmake module when `LLVM_LINK_LLVM_DYLIB=ON` and the module will also ignore w/e LINK_COMPONENTS you pass in. By adding those extra archives for jit targets like AMDGCN* then we bring in their transitive dependencies as well and then get the conflict with LLVM.so. This specific error had to do with libLLVMipo.a.
Does that mean that mean we don't need to link in these at all in dylib build? Could just guard the whole loop thing then.
https://github.com/llvm/llvm-project/pull/104647
More information about the llvm-commits
mailing list