summaryrefslogtreecommitdiff
path: root/extra/llvm/enable-lto.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/llvm/enable-lto.patch')
-rw-r--r--extra/llvm/enable-lto.patch6
1 files changed, 2 insertions, 4 deletions
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);
}