Skip to content

Commit 4cfc979

Browse files
xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore.
1 parent 126a0e2 commit 4cfc979

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)