dist::Rls, dist::Rustfmt, dist::Extended, dist::HashSign,
dist::DontDistWithMiriEnabled),
Kind::Install => describe!(install::Docs, install::Std, install::Cargo, install::Rls,
- install::Analysis, install::Src, install::Rustc),
+ install::Rustfmt, install::Analysis, install::Src, install::Rustc),
}
}
install_sh(builder, "rls", "rls", stage, Some(host));
}
+pub fn install_rustfmt(builder: &Builder, stage: u32, host: Interned<String>) {
+ install_sh(builder, "rustfmt", "rustfmt", stage, Some(host));
+}
+
pub fn install_analysis(builder: &Builder, stage: u32, host: Interned<String>) {
install_sh(builder, "analysis", "rust-analysis", stage, Some(host));
}
println!("skipping Install RLS stage{} ({})", self.stage, self.target);
}
};
+ Rustfmt, "rustfmt", _config.extended, only_hosts: true, {
+ if builder.ensure(dist::Rustfmt { stage: self.stage, target: self.target }).is_some() {
+ install_rustfmt(builder, self.stage, self.target);
+ } else {
+ println!("skipping Install Rustfmt stage{} ({})", self.stage, self.target);
+ }
+ };
Analysis, "analysis", _config.extended, only_hosts: false, {
builder.ensure(dist::Analysis {
compiler: builder.compiler(self.stage, self.host),