Skip to content

Commit c4c3b5a

Browse files
committed
rustbuild: pass version number as param in install phase
Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent f592903 commit c4c3b5a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bootstrap/install.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ pub fn install(build: &Build, stage: u32, host: &str) {
4646
let empty_dir = build.out.join("tmp/empty_dir");
4747
t!(fs::create_dir_all(&empty_dir));
4848
if build.config.docs {
49-
install_sh(&build, "docs", "rust-docs", stage, host, &prefix,
50-
&docdir, &libdir, &mandir, &empty_dir);
49+
install_sh(&build, "docs", "rust-docs", &build.rust_package_vers(),
50+
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
5151
}
5252

5353
for target in build.config.target.iter() {
54-
install_sh(&build, "std", "rust-std", stage, target, &prefix,
54+
install_sh(&build, "std", "rust-std", &build.rust_package_vers(), stage, target, &prefix,
5555
&docdir, &libdir, &mandir, &empty_dir);
5656
}
5757

58-
install_sh(&build, "rustc", "rustc", stage, host, &prefix,
58+
install_sh(&build, "rustc", "rustc", &build.rust_package_vers(), stage, host, &prefix,
5959
&docdir, &libdir, &mandir, &empty_dir);
6060
t!(fs::remove_dir_all(&empty_dir));
6161
}
6262

63-
fn install_sh(build: &Build, package: &str, name: &str, stage: u32, host: &str,
63+
fn install_sh(build: &Build, package: &str, name: &str, version: &str, stage: u32, host: &str,
6464
prefix: &Path, docdir: &Path, libdir: &Path, mandir: &Path, empty_dir: &Path) {
6565
println!("Install {} stage{} ({})", package, stage, host);
66-
let package_name = format!("{}-{}-{}", name, build.rust_package_vers(), host);
66+
let package_name = format!("{}-{}-{}", name, version, host);
6767

6868
let mut cmd = Command::new("sh");
6969
cmd.current_dir(empty_dir)

0 commit comments

Comments
 (0)