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

This commit is contained in:
Michael Woerister 2018-11-14 14:42:49 +01:00
parent 126a0e2aad
commit 4cfc97924f

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
}
}
}
}