]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: install rustc after cargo and rls
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Thu, 27 Apr 2017 13:05:29 +0000 (15:05 +0200)
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Thu, 27 Apr 2017 13:05:29 +0000 (15:05 +0200)
This way its files take precedence (e.g. README.md and stuff)

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
src/bootstrap/install.rs

index b8dde1df72965b51a5010905bf65c1a20e44e2a3..c805522fbf588d06b4676bb8bd0647fa2c1aea54 100644 (file)
@@ -55,9 +55,6 @@ pub fn install(build: &Build, stage: u32, host: &str) {
                    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);
@@ -65,6 +62,9 @@ pub fn install(build: &Build, stage: u32, host: &str) {
                    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));
 }