about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2017-04-27 11:52:48 +0200
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2017-04-27 11:52:58 +0200
commitc4c3b5a44396907e8689eefe8e517cd7a26ac9af (patch)
treece92298fb3ba500ae880170c48ffdaa143f61332 /src/bootstrap
parentf5929037cc38aeb6f32b6b95586a2691554d1636 (diff)
downloadrust-c4c3b5a44396907e8689eefe8e517cd7a26ac9af.tar.gz
rust-c4c3b5a44396907e8689eefe8e517cd7a26ac9af.zip
rustbuild: pass version number as param in install phase
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/install.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bootstrap/install.rs b/src/bootstrap/install.rs
index d508616e4b1..e99451fd52d 100644
--- a/src/bootstrap/install.rs
+++ b/src/bootstrap/install.rs
@@ -46,24 +46,24 @@ pub fn install(build: &Build, stage: u32, host: &str) {
     let empty_dir = build.out.join("tmp/empty_dir");
     t!(fs::create_dir_all(&empty_dir));
     if build.config.docs {
-        install_sh(&build, "docs", "rust-docs", stage, host, &prefix,
-                   &docdir, &libdir, &mandir, &empty_dir);
+        install_sh(&build, "docs", "rust-docs", &build.rust_package_vers(),
+                   stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
     }
 
     for target in build.config.target.iter() {
-        install_sh(&build, "std", "rust-std", stage, target, &prefix,
+        install_sh(&build, "std", "rust-std", &build.rust_package_vers(), stage, target, &prefix,
                    &docdir, &libdir, &mandir, &empty_dir);
     }
 
-    install_sh(&build, "rustc", "rustc", stage, host, &prefix,
+    install_sh(&build, "rustc", "rustc", &build.rust_package_vers(), stage, host, &prefix,
                &docdir, &libdir, &mandir, &empty_dir);
     t!(fs::remove_dir_all(&empty_dir));
 }
 
-fn install_sh(build: &Build, package: &str, name: &str, stage: u32, host: &str,
+fn install_sh(build: &Build, package: &str, name: &str, version: &str, stage: u32, host: &str,
               prefix: &Path, docdir: &Path, libdir: &Path, mandir: &Path, empty_dir: &Path) {
     println!("Install {} stage{} ({})", package, stage, host);
-    let package_name = format!("{}-{}-{}", name, build.rust_package_vers(), host);
+    let package_name = format!("{}-{}-{}", name, version, host);
 
     let mut cmd = Command::new("sh");
     cmd.current_dir(empty_dir)