Skip to content

Commit f385589

Browse files
committed
compiletest: don't pass -Clinker when // force-host was requested.
1 parent b4e504f commit f385589

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,10 +1829,10 @@ impl<'test> TestCx<'test> {
18291829
rustc.args(self.split_maybe_args(&self.config.host_rustcflags));
18301830
} else {
18311831
rustc.args(self.split_maybe_args(&self.config.target_rustcflags));
1832-
}
1833-
if !is_rustdoc {
1834-
if let Some(ref linker) = self.config.linker {
1835-
rustc.arg(format!("-Clinker={}", linker));
1832+
if !is_rustdoc {
1833+
if let Some(ref linker) = self.config.linker {
1834+
rustc.arg(format!("-Clinker={}", linker));
1835+
}
18361836
}
18371837
}
18381838

0 commit comments

Comments
 (0)