diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-09-01 18:39:44 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-09-01 18:39:44 +0200 |
| commit | af627f557ad4806e1de1b4800fd1a7e5a42420a8 (patch) | |
| tree | 5dbe53af15f46cf1b44f3a07d38a66a77882c38e | |
| parent | 6f5fc69c7ebca3e48073ba81fdd3c3ccfe1f2bf5 (diff) | |
| download | rust-af627f557ad4806e1de1b4800fd1a7e5a42420a8.tar.gz rust-af627f557ad4806e1de1b4800fd1a7e5a42420a8.zip | |
Fix ui-fulldeps
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index cdcbe29795d..ee2cbe9385e 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1873,7 +1873,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the // When top stage is 0, that means that we're testing an externally provided compiler. // In that case we need to use its specific sysroot for tests to pass. - let sysroot = if test_compiler.stage == 0 { + // Note: DO NOT check if test_compiler.stage is 0, because the test compiler can be stage 0 + // even if the top stage is 1 (when we run the ui-fulldeps suite). + let sysroot = if builder.top_stage == 0 { builder.initial_sysroot.clone() } else { builder.sysroot(test_compiler) |
