diff options
author | root <root@rshg054.dnsready.net> | 2011-12-09 23:14:52 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-09 23:14:52 +0000 |
commit | d22b68a6758c4f29a8e50a7be467374a53c68415 (patch) | |
tree | 019c8b74603792b4b8f08d6815438654a64d0e38 /extra/llvm/enable-lto.patch | |
parent | 707457876743e969be9eb163c36928978df245cd (diff) |
Fri Dec 9 23:14:52 UTC 2011
Diffstat (limited to 'extra/llvm/enable-lto.patch')
-rw-r--r-- | extra/llvm/enable-lto.patch | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/extra/llvm/enable-lto.patch b/extra/llvm/enable-lto.patch index 40d93104a..3c8691b17 100644 --- a/extra/llvm/enable-lto.patch +++ b/extra/llvm/enable-lto.patch @@ -2,17 +2,12 @@ Index: lib/Driver/ToolChains.cpp =================================================================== --- lib/Driver/ToolChains.cpp (revision 123373) +++ lib/Driver/ToolChains.cpp (working copy) -@@ -1398,11 +1398,11 @@ - Lib = Lib64; - } +@@ -1398,7 +1398,7 @@ + PPaths.push_back(Twine(GCCInstallation.getParentLibPath() + "/../" + + GCCInstallation.getTriple() + "/bin").str()); -- 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"); +- Linker = GetProgramPath("ld"); ++ Linker = GetProgramPath("ld.gold"); LinuxDistro Distro = DetectLinuxDistro(Arch); @@ -27,7 +22,8 @@ Index: lib/Driver/Tools.cpp - 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/LLVMgold.so"; ++ std::string Plugin = ToolChain.getDriver().Dir + "/../lib/llvm/LLVMgold.so"; CmdArgs.push_back(Args.MakeArgString(Plugin)); - } + // } |