mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
Rollup merge of #109256 - chaitanyav:fix_108948, r=albertlarsan68
Check for llvm-tools before install Fixes #108948 ````@jpalus```` Please review
This commit is contained in:
commit
01edab6024
@ -210,10 +210,13 @@ install!((self, builder, _config),
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
LlvmTools, alias = "llvm-tools", Self::should_build(_config), only_hosts: true, {
|
LlvmTools, alias = "llvm-tools", Self::should_build(_config), only_hosts: true, {
|
||||||
let tarball = builder
|
if let Some(tarball) = builder.ensure(dist::LlvmTools { target: self.target }) {
|
||||||
.ensure(dist::LlvmTools { target: self.target })
|
install_sh(builder, "llvm-tools", self.compiler.stage, Some(self.target), &tarball);
|
||||||
.expect("missing llvm-tools");
|
} else {
|
||||||
install_sh(builder, "llvm-tools", self.compiler.stage, Some(self.target), &tarball);
|
builder.info(
|
||||||
|
&format!("skipping llvm-tools stage{} ({}): external LLVM", self.compiler.stage, self.target),
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Rustfmt, alias = "rustfmt", Self::should_build(_config), only_hosts: true, {
|
Rustfmt, alias = "rustfmt", Self::should_build(_config), only_hosts: true, {
|
||||||
if let Some(tarball) = builder.ensure(dist::Rustfmt {
|
if let Some(tarball) = builder.ensure(dist::Rustfmt {
|
||||||
|
Loading…
Reference in New Issue
Block a user