diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-21 07:46:40 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-21 07:46:40 (GMT) |
commit | 6199ba3a18c3b76e4962206722bdd4fe7d3096e0 (patch) | |
tree | bb5a0082c8b4de8e096b54b5b4c421b3e97b7dd4 /abs/core/llvm/enable-lto.patch | |
parent | 444454770de1e247155a3557fab141be24c3a03b (diff) | |
parent | 56ff12b7fb2841e49431084a5b85d95fe8c9de2b (diff) | |
download | linhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.zip linhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.tar.gz linhes_pkgbuild-6199ba3a18c3b76e4962206722bdd4fe7d3096e0.tar.bz2 |
Merge branch 'testing' of ssh://cesman@linhes.org/mount/repository/linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/llvm/enable-lto.patch')
-rw-r--r-- | abs/core/llvm/enable-lto.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/abs/core/llvm/enable-lto.patch b/abs/core/llvm/enable-lto.patch new file mode 100644 index 0000000..40d9310 --- /dev/null +++ b/abs/core/llvm/enable-lto.patch @@ -0,0 +1,36 @@ +Index: lib/Driver/ToolChains.cpp +=================================================================== +--- lib/Driver/ToolChains.cpp (revision 123373) ++++ lib/Driver/ToolChains.cpp (working copy) +@@ -1398,11 +1398,11 @@ + Lib = Lib64; + } + +- llvm::sys::Path LinkerPath(Base + "/../../../../" + GccTriple + "/bin/ld"); ++ llvm::sys::Path LinkerPath(Base + "/../../../../" + GccTriple + "/bin/ld.gold"); + if (!llvm::sys::fs::exists(LinkerPath.str(), Exists) && Exists) + Linker = LinkerPath.str(); + else +- 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"; + CmdArgs.push_back(Args.MakeArgString(Plugin)); +- } ++ // } + + C.addCommand(new Command(JA, *this, ToolChain.Linker.c_str(), CmdArgs)); + } |