Skip to content

Commit 57d85fa

Browse files
authored
Rollup merge of #129943 - onur-ozkan:test-float-parse-compiler, r=Kobzol
use the bootstrapped compiler for `test-float-parse` test Fixes #122709 (comment). Blocker for #122709
2 parents 95c580d + 9cb6d12 commit 57d85fa

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
@@ -3529,11 +3529,13 @@ impl Step for TestFloatParse {
35293529

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

3536-
builder.ensure(compile::Std::new(compiler, self.host));
3536+
if !builder.download_rustc() {
3537+
builder.ensure(compile::Std::new(compiler, self.host));
3538+
}
35373539

35383540
// Run any unit tests in the crate
35393541
let cargo_test = tool::prepare_tool_cargo(

0 commit comments

Comments
 (0)