mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +00:00
3e8355df84
See https://github.com/nixos/nixpkgs/issues/123361 for context regarding the clang patch. Seems like the https://github.com/llvm/llvm-project/issues/61350 crash no longer occurs in the test suite and we can reenable the gold plugin by default.
15 lines
689 B
Diff
15 lines
689 B
Diff
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
|
|
index 34640b3c450d..93c4a4f4ec5c 100644
|
|
--- a/lib/Driver/ToolChains/CommonArgs.cpp
|
|
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
|
|
@@ -589,8 +589,7 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
|
|
#endif
|
|
|
|
SmallString<1024> Plugin;
|
|
- llvm::sys::path::native(Twine(D.Dir) +
|
|
- "/../" CLANG_INSTALL_LIBDIR_BASENAME +
|
|
+ llvm::sys::path::native(Twine("@libllvmLibdir@") +
|
|
PluginName + Suffix,
|
|
Plugin);
|
|
CmdArgs.push_back(Args.MakeArgString(Twine(PluginPrefix) + Plugin));
|