Skip to content

Commit af627f5

Browse files
committed
Fix ui-fulldeps
1 parent 6f5fc69 commit af627f5

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
18731873

18741874
// When top stage is 0, that means that we're testing an externally provided compiler.
18751875
// In that case we need to use its specific sysroot for tests to pass.
1876-
let sysroot = if test_compiler.stage == 0 {
1876+
// Note: DO NOT check if test_compiler.stage is 0, because the test compiler can be stage 0
1877+
// even if the top stage is 1 (when we run the ui-fulldeps suite).
1878+
let sysroot = if builder.top_stage == 0 {
18771879
builder.initial_sysroot.clone()
18781880
} else {
18791881
builder.sysroot(test_compiler)

0 commit comments

Comments
 (0)