Skip to content

Commit 3dfbe35

Browse files
michaelwoeristerpietroalbini
authored andcommitted
xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore.
1 parent 51be258 commit 3dfbe35

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/librustc_codegen_llvm/back/linker.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,6 @@ impl<'a> GccLinker<'a> {
205205

206206
self.linker_arg(&format!("-plugin-opt={}", opt_level));
207207
self.linker_arg(&format!("-plugin-opt=mcpu={}", llvm_util::target_cpu(self.sess)));
208-
209-
match self.sess.lto() {
210-
config::Lto::Thin |
211-
config::Lto::ThinLocal => {
212-
self.linker_arg("-plugin-opt=thin");
213-
}
214-
config::Lto::Fat |
215-
config::Lto::No => {
216-
// default to regular LTO
217-
}
218-
}
219208
}
220209
}
221210

0 commit comments

Comments
 (0)