compiletest: don't pass -Clinker when // force-host was requested.

This commit is contained in:
Eduard-Mihai Burtescu 2018-11-26 13:04:26 +02:00
parent b4e504f5b8
commit f385589dde

View file

@ -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));
}
}
}