]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: install cargo and rls when extended build is enabled
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Thu, 27 Apr 2017 09:53:18 +0000 (11:53 +0200)
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Thu, 27 Apr 2017 10:05:34 +0000 (12:05 +0200)
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
src/bootstrap/install.rs

index e99451fd52de25fadd4e4f6b17a510fbe8eb2be7..b8dde1df72965b51a5010905bf65c1a20e44e2a3 100644 (file)
@@ -51,12 +51,20 @@ pub fn install(build: &Build, stage: u32, host: &str) {
     }
 
     for target in build.config.target.iter() {
-        install_sh(&build, "std", "rust-std", &build.rust_package_vers(), stage, target, &prefix,
-                   &docdir, &libdir, &mandir, &empty_dir);
+        install_sh(&build, "std", "rust-std", &build.rust_package_vers(),
+                   stage, target, &prefix, &docdir, &libdir, &mandir, &empty_dir);
+    }
+
+    install_sh(&build, "rustc", "rustc", &build.rust_package_vers(),
+               stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
+
+    if build.config.extended {
+        install_sh(&build, "cargo", "cargo", &build.cargo_package_vers(),
+                   stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
+        install_sh(&build, "rls", "rls", &build.rls_package_vers(),
+                   stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
     }
 
-    install_sh(&build, "rustc", "rustc", &build.rust_package_vers(), stage, host, &prefix,
-               &docdir, &libdir, &mandir, &empty_dir);
     t!(fs::remove_dir_all(&empty_dir));
 }