1
Fork 0

Auto merge of #55947 - michaelwoerister:xlto-fix-lld-opt, r=Mark-Simulacrum

xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore.

It seems that `-plugin-opt=thin` is not needed anymore when invoking LLD for ThinLTO. Unfortunately, still passing the option makes LLD crash instead of giving a deprecation warning or something.
This commit is contained in:
bors 2018-11-14 19:25:54 +00:00
commit 6f93e93af6

View file

@ -209,17 +209,6 @@ impl<'a> GccLinker<'a> {
self.linker_arg(&format!("-plugin-opt={}", opt_level));
let target_cpu = self.target_cpu;
self.linker_arg(&format!("-plugin-opt=mcpu={}", target_cpu));
match self.sess.lto() {
config::Lto::Thin |
config::Lto::ThinLocal => {
self.linker_arg("-plugin-opt=thin");
}
config::Lto::Fat |
config::Lto::No => {
// default to regular LTO
}
}
}
}