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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits