about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2018-11-14 14:42:49 +0100
committerMichael Woerister <michaelwoerister@posteo>2018-11-14 14:42:49 +0100
commit4cfc97924f3712cd8f40e498fc949bfb02d74992 (patch)
tree8c78681666aa1899ec1a7c427549bea3ce7facd4
parent126a0e2aadcd2c4cbe0b67f9c192047d6f6ec9e6 (diff)
downloadrust-4cfc97924f3712cd8f40e498fc949bfb02d74992.tar.gz
rust-4cfc97924f3712cd8f40e498fc949bfb02d74992.zip
xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore.
-rw-r--r--src/librustc_codegen_utils/linker.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/librustc_codegen_utils/linker.rs b/src/librustc_codegen_utils/linker.rs
index e9ac92da684..219bf256638 100644
--- a/src/librustc_codegen_utils/linker.rs
+++ b/src/librustc_codegen_utils/linker.rs
@@ -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
-            }
-        }
     }
 }