about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-09-01 18:39:44 +0200
committerJakub Beránek <berykubik@gmail.com>2025-09-01 18:39:44 +0200
commitaf627f557ad4806e1de1b4800fd1a7e5a42420a8 (patch)
tree5dbe53af15f46cf1b44f3a07d38a66a77882c38e
parent6f5fc69c7ebca3e48073ba81fdd3c3ccfe1f2bf5 (diff)
downloadrust-af627f557ad4806e1de1b4800fd1a7e5a42420a8.tar.gz
rust-af627f557ad4806e1de1b4800fd1a7e5a42420a8.zip
Fix ui-fulldeps
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs4
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)