[PATCH] D122592: [OpenMP] Fix library path missing when using OpenMP

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 28 09:46:31 PDT 2022


jhuber6 added a comment.

In D122592#3411741 <https://reviews.llvm.org/D122592#3411741>, @MaskRay wrote:

> Another idea is to refactor `tools::addOpenMPRuntime` to use the full path of `libomp.so` or `libomp.a` instead of `-LXXX -lomp`.
> The two ways have identical semantics when `libomp.so` has a `DT_SONAME` tag.

It's technically possible for the runtime libraries to live somewhere else, I forget if any of our testers have a setup like that.

> In the long term, perhaps libomp.so should be installed to the multiarch directory like `lib/x86_64-unknown-linux-gnu/libc++.so`.

Could you elaborate on the benefits of using the multiarch directory? I'm not familiar with it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122592/new/

https://reviews.llvm.org/D122592



More information about the cfe-commits mailing list