From f503701b04bfc3fbec13acce2abfa9e8df56d2c0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 31 Dec 2012 01:32:52 -0800 Subject: Mon Dec 31 01:32:43 PST 2012 --- extra/llvm/enable-lto.patch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'extra/llvm/enable-lto.patch') diff --git a/extra/llvm/enable-lto.patch b/extra/llvm/enable-lto.patch index 3205fbf69..9f43e657e 100644 --- a/extra/llvm/enable-lto.patch +++ b/extra/llvm/enable-lto.patch @@ -19,14 +19,12 @@ Index: lib/Driver/Tools.cpp // Tell the linker to load the plugin. This has to come before AddLinkerInputs // as gold requires -plugin to come before any -plugin-opt that -Wl might // forward. -- if (D.IsUsingLTO(Args) || Args.hasArg(options::OPT_use_gold_plugin)) { -+ // if (D.IsUsingLTO(Args) || Args.hasArg(options::OPT_use_gold_plugin)) { + if (D.IsUsingLTO(Args) || 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)); -- } -+ // } + } AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); } -- cgit v1.2.3-54-g00ecf