mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-07 06:07:15 +08:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
Index: lib/Driver/ToolChains.cpp
|
|
===================================================================
|
|
--- lib/Driver/ToolChains.cpp (revision 123373)
|
|
+++ lib/Driver/ToolChains.cpp (working copy)
|
|
@@ -1398,7 +1398,7 @@
|
|
PPaths.push_back(Twine(GCCInstallation.getParentLibPath() + "/../" +
|
|
GCCInstallation.getTriple() + "/bin").str());
|
|
|
|
- Linker = GetProgramPath("ld");
|
|
+ Linker = GetProgramPath("ld.gold");
|
|
|
|
LinuxDistro Distro = DetectLinuxDistro(Arch);
|
|
|
|
Index: lib/Driver/Tools.cpp
|
|
===================================================================
|
|
--- lib/Driver/Tools.cpp (revision 123373)
|
|
+++ lib/Driver/Tools.cpp (working copy)
|
|
@@ -3412,11 +3412,11 @@
|
|
}
|
|
}
|
|
|
|
- if (Args.hasArg(options::OPT_use_gold_plugin)) {
|
|
+ // if (Args.hasArg(options::OPT_use_gold_plugin)) {
|
|
CmdArgs.push_back("-plugin");
|
|
- std::string Plugin = ToolChain.getDriver().Dir + "/../lib/LLVMgold.so";
|
|
+ std::string Plugin = ToolChain.getDriver().Dir + "/../lib/llvm/LLVMgold.so";
|
|
CmdArgs.push_back(Args.MakeArgString(Plugin));
|
|
- }
|
|
+ // }
|
|
|
|
C.addCommand(new Command(JA, *this, ToolChain.Linker.c_str(), CmdArgs));
|
|
}
|