Skip to content

Commit 7b1fb89

Browse files
committed
rustbuild: install rustc after cargo and rls
This way its files take precedence (e.g. README.md and stuff) Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent 03c5797 commit 7b1fb89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/install.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ pub fn install(build: &Build, stage: u32, host: &str) {
5555
stage, target, &prefix, &docdir, &libdir, &mandir, &empty_dir);
5656
}
5757

58-
install_sh(&build, "rustc", "rustc", &build.rust_package_vers(),
59-
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
60-
6158
if build.config.extended {
6259
install_sh(&build, "cargo", "cargo", &build.cargo_package_vers(),
6360
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
6461
install_sh(&build, "rls", "rls", &build.rls_package_vers(),
6562
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
6663
}
6764

65+
install_sh(&build, "rustc", "rustc", &build.rust_package_vers(),
66+
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
67+
6868
t!(fs::remove_dir_all(&empty_dir));
6969
}
7070

0 commit comments

Comments
 (0)