diff options
author | root <root@rshg047.dnsready.net> | 2011-04-29 22:32:36 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-04-29 22:32:36 +0000 |
commit | 693b5793b8c615601135bc04216a2ca0966087c5 (patch) | |
tree | 1c1cf0bc5020b0226efff0b39c7847b3414efaa6 /extra/llvm/enable-lto.patch | |
parent | 19f42937be8f6619a85663cb71e24c05b7e8b6d2 (diff) |
Fri Apr 29 22:32:36 UTC 2011
Diffstat (limited to 'extra/llvm/enable-lto.patch')
-rw-r--r-- | extra/llvm/enable-lto.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/llvm/enable-lto.patch b/extra/llvm/enable-lto.patch new file mode 100644 index 000000000..40d93104a --- /dev/null +++ b/extra/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)); + } |