[llvm] [offload] Fix link issues when LLVM_LINK_LLVM_DYLIB on (PR #106583)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 15:52:57 PDT 2024


jhuber6 wrote:

> When LLVM_LINK_LLVM_DYLIB is on, link against LLVM (shared library) rather than individual (static) libraries. Otherwise, global initializers may get called multiple times as multiple copies of LLVM libraries are loaded.

This is confusing, why would it be firing the constructors multiple times? If we link it statically then there should be no dynamic module. Are we somehow doing both?

https://github.com/llvm/llvm-project/pull/106583


More information about the llvm-commits mailing list