Skip to content

Commit 6f93e93

Browse files
committed
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.
2 parents 6f244c9 + 4cfc979 commit 6f93e93

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/librustc_codegen_utils/linker.rs

-11
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,6 @@ impl<'a> GccLinker<'a> {
209209
self.linker_arg(&format!("-plugin-opt={}", opt_level));
210210
let target_cpu = self.target_cpu;
211211
self.linker_arg(&format!("-plugin-opt=mcpu={}", target_cpu));
212-
213-
match self.sess.lto() {
214-
config::Lto::Thin |
215-
config::Lto::ThinLocal => {
216-
self.linker_arg("-plugin-opt=thin");
217-
}
218-
config::Lto::Fat |
219-
config::Lto::No => {
220-
// default to regular LTO
221-
}
222-
}
223212
}
224213
}
225214

0 commit comments

Comments
 (0)