Skip to content

Commit 4d0260b

Browse files
committedApr 4, 2025
utilize compiletest_use_stage0_libtest option
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 55cfe3c commit 4d0260b

File tree

1 file changed

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

1 file changed

+4
-1
lines changed
 

‎src/bootstrap/src/core/build_steps/tool.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,14 @@ macro_rules! bootstrap_tool {
425425
}
426426
)*
427427

428+
let is_unstable = false $(|| $unstable)*;
429+
let compiletest_wants_stage0 = $tool_name == "compiletest" && builder.config.compiletest_use_stage0_libtest;
430+
428431
builder.ensure(ToolBuild {
429432
compiler: self.compiler,
430433
target: self.target,
431434
tool: $tool_name,
432-
mode: if false $(|| $unstable)* {
435+
mode: if is_unstable && !compiletest_wants_stage0 {
433436
// use in-tree libraries for unstable features
434437
Mode::ToolStd
435438
} else {

0 commit comments

Comments
 (0)