From: Eduard-Mihai Burtescu Date: Mon, 26 Nov 2018 11:04:26 +0000 (+0200) Subject: compiletest: don't pass -Clinker when `// force-host` was requested. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f385589dde6f39ec1deedceacd05f554d625fd50;p=rust.git compiletest: don't pass -Clinker when `// force-host` was requested. --- diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 399f9f577ed..b650e056eb7 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1829,10 +1829,10 @@ fn make_compile_args(&self, input_file: &Path, output_file: TargetLocation) -> C rustc.args(self.split_maybe_args(&self.config.host_rustcflags)); } else { rustc.args(self.split_maybe_args(&self.config.target_rustcflags)); - } - if !is_rustdoc { - if let Some(ref linker) = self.config.linker { - rustc.arg(format!("-Clinker={}", linker)); + if !is_rustdoc { + if let Some(ref linker) = self.config.linker { + rustc.arg(format!("-Clinker={}", linker)); + } } }