Skip to content

Commit 9cb6d12

Browse files
committed
use the bootstrapped compiler for test-float-parse test
Signed-off-by: onur-ozkan <[email protected]>
1 parent d6c8169 commit 9cb6d12

File tree

1 file changed

+4
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-2
lines changed

Diff for: src/bootstrap/src/core/build_steps/test.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3526,11 +3526,13 @@ impl Step for TestFloatParse {
35263526

35273527
fn run(self, builder: &Builder<'_>) {
35283528
let bootstrap_host = builder.config.build;
3529-
let compiler = builder.compiler(0, bootstrap_host);
3529+
let compiler = builder.compiler(builder.top_stage, bootstrap_host);
35303530
let path = self.path.to_str().unwrap();
35313531
let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap();
35323532

3533-
builder.ensure(compile::Std::new(compiler, self.host));
3533+
if !builder.download_rustc() {
3534+
builder.ensure(compile::Std::new(compiler, self.host));
3535+
}
35343536

35353537
// Run any unit tests in the crate
35363538
let cargo_test = tool::prepare_tool_cargo(

0 commit comments

Comments
 (0)