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:
commit
6f93e93af6
1 changed files with 0 additions and 11 deletions
|
@ -209,17 +209,6 @@ impl<'a> GccLinker<'a> {
|
||||||
self.linker_arg(&format!("-plugin-opt={}", opt_level));
|
self.linker_arg(&format!("-plugin-opt={}", opt_level));
|
||||||
let target_cpu = self.target_cpu;
|
let target_cpu = self.target_cpu;
|
||||||
self.linker_arg(&format!("-plugin-opt=mcpu={}", 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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue