nixpkgs/pkgs/development/compilers/llvm/clang-11-15-LLVMgold-path.patch
sternenseemann 6db6c6df7b llvmPackages_*: update name for LLVMgold patch for clang >= 11
It no longer applies to clang >= 16, let's make the name correspond to
the versions it applies to.
2023-12-12 16:49:07 +01:00

14 lines
580 B
Diff

diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
index 6b6e276b8ce7..7896542a1202 100644
--- a/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
@@ -409,7 +409,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
SmallString<1024> Plugin;
llvm::sys::path::native(
- Twine(D.Dir) + "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" + Suffix,
+ Twine("@libllvmLibdir@" "/LLVMgold") + Suffix,
Plugin);
CmdArgs.push_back(Args.MakeArgString(Plugin));
}