-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124341 from NixOS/staging-next-21.05
[21.05] Staging next
- Loading branch information
Showing
22 changed files
with
144 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
pkgs/development/compilers/llvm/5/clang/LLVMgold-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp | ||
index 00bd60bc24bb..17416b0bd3c0 100644 | ||
--- a/lib/Driver/ToolChains/CommonArgs.cpp | ||
+++ b/lib/Driver/ToolChains/CommonArgs.cpp | ||
@@ -376,8 +376,7 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args, | ||
// as gold requires -plugin to come before any -plugin-opt that -Wl might | ||
// forward. | ||
CmdArgs.push_back("-plugin"); | ||
- std::string Plugin = | ||
- ToolChain.getDriver().Dir + "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold.so"; | ||
+ std::string Plugin = "@libllvmLibdir@" "/LLVMgold.so"; | ||
CmdArgs.push_back(Args.MakeArgString(Plugin)); | ||
|
||
// Try to pass driver level flags relevant to LTO code generation down to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkgs/development/compilers/llvm/clang-11-12-LLVMgold-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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)); | ||
} |
15 changes: 15 additions & 0 deletions
15
pkgs/development/compilers/llvm/clang-6-10-LLVMgold-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp | ||
index 37ec73468570..b73e75aa6e59 100644 | ||
--- a/lib/Driver/ToolChains/CommonArgs.cpp | ||
+++ b/lib/Driver/ToolChains/CommonArgs.cpp | ||
@@ -370,8 +370,8 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args, | ||
#endif | ||
|
||
SmallString<1024> Plugin; | ||
- llvm::sys::path::native(Twine(ToolChain.getDriver().Dir) + | ||
- "/../lib" CLANG_LIBDIR_SUFFIX "/LLVMgold" + | ||
+ llvm::sys::path::native(Twine("@libllvmLibdir@" | ||
+ "/LLVMgold") + | ||
Suffix, | ||
Plugin); | ||
CmdArgs.push_back(Args.MakeArgString(Plugin)); |
Oops, something went wrong.