[PATCH] D119590: exclude openembedded distributions from setting rpath on openmp executables

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 11 15:55:48 PST 2022


JonChesterfield added a comment.

Cross compilers are a hazard here. I'd expect there to be a fairly long list of magic flags you need to pass to clang to get it to find the right libraries. Can you add fno-openmp-implicit-rpath to that list instead?

A better solution might be a cmake flag to specify where to use for the implicit rpath directory instead of deriving it from sys::path::parent_path. That would let your target set up a cross compiling toolchain that creates binaries that are able to find libomp et al in whatever directory they're located, without assuming a whole llvm toolchain installed onto the target.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119590



More information about the cfe-commits mailing list