Skip to content

Commit

Permalink
Minor build perf optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 13, 2023
1 parent 41866bf commit 4ece6d0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build_system/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use super::build_sysroot;
use super::config;
use super::path::{Dirs, RelPath};
use super::prepare::GitRepo;
use super::rustc_info::get_host_triple;
use super::utils::{spawn_and_wait, spawn_and_wait_with_input, CargoProject, Compiler};
use super::SysrootKind;
use std::env;
Expand Down Expand Up @@ -230,8 +229,11 @@ pub(crate) fn run_tests(
target_triple.clone(),
);

let runner =
TestRunner::new(dirs.clone(), target_compiler, get_host_triple() == target_triple);
let runner = TestRunner::new(
dirs.clone(),
target_compiler,
bootstrap_host_compiler.triple == target_triple,
);

BUILD_EXAMPLE_OUT_DIR.ensure_fresh(dirs);
runner.run_testsuite(NO_SYSROOT_SUITE);
Expand All @@ -252,8 +254,11 @@ pub(crate) fn run_tests(
target_triple.clone(),
);

let runner =
TestRunner::new(dirs.clone(), target_compiler, get_host_triple() == target_triple);
let runner = TestRunner::new(
dirs.clone(),
target_compiler,
bootstrap_host_compiler.triple == target_triple,
);

if run_base_sysroot {
runner.run_testsuite(BASE_SYSROOT_SUITE);
Expand Down

0 comments on commit 4ece6d0

Please sign in to comment.