We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be0f3bd + 8d5e856 commit 9fff866Copy full SHA for 9fff866
src/tools/compiletest/src/runtest.rs
@@ -1951,7 +1951,9 @@ impl<'test> TestCx<'test> {
1951
rustc.arg("-Ztranslate-remapped-path-to-local-path=no");
1952
1953
// Optionally prevent default --sysroot if specified in test compile-flags.
1954
- if !self.props.compile_flags.iter().any(|flag| flag.starts_with("--sysroot")) {
+ if !self.props.compile_flags.iter().any(|flag| flag.starts_with("--sysroot"))
1955
+ && !self.config.host_rustcflags.iter().any(|flag| flag == "--sysroot")
1956
+ {
1957
// In stage 0, make sure we use `stage0-sysroot` instead of the bootstrap sysroot.
1958
rustc.arg("--sysroot").arg(&self.config.sysroot_base);
1959
}
0 commit comments