Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e1826bf

Browse files
committed
Point to stage1-std when in stage2 rustc
1 parent 8148053 commit e1826bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,12 @@ impl<'test> TestCx<'test> {
37733773

37743774
let mut stage_std_path = PathBuf::new();
37753775
stage_std_path.push(&build_root);
3776-
stage_std_path.push(format!("{}-std", stage));
3776+
if stage == "stage0" {
3777+
stage_std_path.push("stage0-std");
3778+
} else {
3779+
// stage2 reuses stage1-std.
3780+
stage_std_path.push("stage1-std");
3781+
}
37773782
stage_std_path.push(&self.config.target);
37783783
stage_std_path.push("release/deps");
37793784

0 commit comments

Comments
 (0)