[clang] [openmp] [OpenMP] Respect LLVM per-target install directories (PR #83282)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 28 08:33:14 PST 2024
================
@@ -2763,13 +2763,13 @@ void tools::addOpenMPDeviceRTL(const Driver &D,
const llvm::opt::ArgList &DriverArgs,
llvm::opt::ArgStringList &CC1Args,
StringRef BitcodeSuffix,
- const llvm::Triple &Triple) {
+ const llvm::Triple &Triple,
+ const ToolChain &HostTC) {
SmallVector<StringRef, 8> LibraryPaths;
- // Add path to clang lib / lib64 folder.
- SmallString<256> DefaultLibPath = llvm::sys::path::parent_path(D.Dir);
- llvm::sys::path::append(DefaultLibPath, CLANG_INSTALL_LIBDIR_BASENAME);
- LibraryPaths.emplace_back(DefaultLibPath.c_str());
+ // Check all of the standard library search paths used by the compiler.
----------------
MaskRay wrote:
clang/test/Driver/linux-cross.cpp has examples how to test -L.
https://github.com/llvm/llvm-project/pull/83282
More information about the cfe-commits
mailing list