Skip to content

Commit

Permalink
Point to stage1-std when in stage2 rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 2, 2024
1 parent 8148053 commit e1826bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,12 @@ impl<'test> TestCx<'test> {

let mut stage_std_path = PathBuf::new();
stage_std_path.push(&build_root);
stage_std_path.push(format!("{}-std", stage));
if stage == "stage0" {
stage_std_path.push("stage0-std");
} else {
// stage2 reuses stage1-std.
stage_std_path.push("stage1-std");
}
stage_std_path.push(&self.config.target);
stage_std_path.push("release/deps");

Expand Down

0 comments on commit e1826bf

Please sign in to comment.