Skip to content

Commit 23a34c1

Browse files
committed
bootstrap: Allow installing llvm-tools
1 parent c6fcdb6 commit 23a34c1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/bootstrap/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ impl<'a> Builder<'a> {
744744
install::RustDemangler,
745745
install::Clippy,
746746
install::Miri,
747+
install::LlvmTools,
747748
install::Analysis,
748749
install::Src,
749750
install::Rustc

src/bootstrap/install.rs

+6
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ install!((self, builder, _config),
205205
.expect("missing miri");
206206
install_sh(builder, "miri", self.compiler.stage, Some(self.target), &tarball);
207207
};
208+
LlvmTools, alias = "llvm-tools", Self::should_build(_config), only_hosts: true, {
209+
let tarball = builder
210+
.ensure(dist::LlvmTools { target: self.target })
211+
.expect("missing llvm-tools");
212+
install_sh(builder, "llvm-tools", self.compiler.stage, Some(self.target), &tarball);
213+
};
208214
Rustfmt, alias = "rustfmt", Self::should_build(_config), only_hosts: true, {
209215
if let Some(tarball) = builder.ensure(dist::Rustfmt {
210216
compiler: self.compiler,

0 commit comments

Comments
 (0)