Skip to content

Commit

Permalink
xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Nov 14, 2018
1 parent 126a0e2 commit 4cfc979
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/librustc_codegen_utils/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}

Expand Down

0 comments on commit 4cfc979

Please sign in to comment.