Skip to content

Commit 03c5797

Browse files
committed
rustbuild: install cargo and rls when extended build is enabled
Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent a2bab1d commit 03c5797

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/bootstrap/install.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,20 @@ pub fn install(build: &Build, stage: u32, host: &str) {
5151
}
5252

5353
for target in build.config.target.iter() {
54-
install_sh(&build, "std", "rust-std", &build.rust_package_vers(), stage, target, &prefix,
55-
&docdir, &libdir, &mandir, &empty_dir);
54+
install_sh(&build, "std", "rust-std", &build.rust_package_vers(),
55+
stage, target, &prefix, &docdir, &libdir, &mandir, &empty_dir);
56+
}
57+
58+
install_sh(&build, "rustc", "rustc", &build.rust_package_vers(),
59+
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
60+
61+
if build.config.extended {
62+
install_sh(&build, "cargo", "cargo", &build.cargo_package_vers(),
63+
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
64+
install_sh(&build, "rls", "rls", &build.rls_package_vers(),
65+
stage, host, &prefix, &docdir, &libdir, &mandir, &empty_dir);
5666
}
5767

58-
install_sh(&build, "rustc", "rustc", &build.rust_package_vers(), stage, host, &prefix,
59-
&docdir, &libdir, &mandir, &empty_dir);
6068
t!(fs::remove_dir_all(&empty_dir));
6169
}
6270

0 commit comments

Comments
 (0)