From 4cfc97924f3712cd8f40e498fc949bfb02d74992 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 14 Nov 2018 14:42:49 +0100 Subject: [PATCH] xLTO: Don't pass --plugin-opt=thin to LLD. That's not supported anymore. --- src/librustc_codegen_utils/linker.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/librustc_codegen_utils/linker.rs b/src/librustc_codegen_utils/linker.rs index e9ac92da68435..219bf2566383e 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 - } - } } }