diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-26 13:04:26 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-30 06:15:20 +0200 |
| commit | f385589dde6f39ec1deedceacd05f554d625fd50 (patch) | |
| tree | 10250f4109be255c6597f7db966390a29399f23b /src/tools | |
| parent | b4e504f5b8db881cc5b19b24f72023dc16163ec1 (diff) | |
| download | rust-f385589dde6f39ec1deedceacd05f554d625fd50.tar.gz rust-f385589dde6f39ec1deedceacd05f554d625fd50.zip | |
compiletest: don't pass -Clinker when `// force-host` was requested.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 @@ impl<'test> TestCx<'test> { 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)); + } } } |
