Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4ece6d0

Browse files
committed
Minor build perf optimization
1 parent 41866bf commit 4ece6d0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

build_system/tests.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use super::build_sysroot;
22
use super::config;
33
use super::path::{Dirs, RelPath};
44
use super::prepare::GitRepo;
5-
use super::rustc_info::get_host_triple;
65
use super::utils::{spawn_and_wait, spawn_and_wait_with_input, CargoProject, Compiler};
76
use super::SysrootKind;
87
use std::env;
@@ -230,8 +229,11 @@ pub(crate) fn run_tests(
230229
target_triple.clone(),
231230
);
232231

233-
let runner =
234-
TestRunner::new(dirs.clone(), target_compiler, get_host_triple() == target_triple);
232+
let runner = TestRunner::new(
233+
dirs.clone(),
234+
target_compiler,
235+
bootstrap_host_compiler.triple == target_triple,
236+
);
235237

236238
BUILD_EXAMPLE_OUT_DIR.ensure_fresh(dirs);
237239
runner.run_testsuite(NO_SYSROOT_SUITE);
@@ -252,8 +254,11 @@ pub(crate) fn run_tests(
252254
target_triple.clone(),
253255
);
254256

255-
let runner =
256-
TestRunner::new(dirs.clone(), target_compiler, get_host_triple() == target_triple);
257+
let runner = TestRunner::new(
258+
dirs.clone(),
259+
target_compiler,
260+
bootstrap_host_compiler.triple == target_triple,
261+
);
257262

258263
if run_base_sysroot {
259264
runner.run_testsuite(BASE_SYSROOT_SUITE);

0 commit comments

Comments
 (0)