-// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
//! Implementation of the install aspects of the compiler.
//!
//! This module is responsible for installing the standard library,
pub fn install_clippy(builder: &Builder, stage: u32, host: Interned<String>) {
install_sh(builder, "clippy", "clippy", stage, Some(host));
}
+pub fn install_miri(builder: &Builder, stage: u32, host: Interned<String>) {
+ install_sh(builder, "miri", "miri", stage, Some(host));
+}
pub fn install_rustfmt(builder: &Builder, stage: u32, host: Interned<String>) {
install_sh(builder, "rustfmt", "rustfmt", stage, Some(host));
builder.info(&format!("skipping Install clippy stage{} ({})", self.stage, self.target));
}
};
+ Miri, "miri", Self::should_build(_config), only_hosts: true, {
+ if builder.ensure(dist::Miri { stage: self.stage, target: self.target }).is_some() ||
+ Self::should_install(builder) {
+ install_miri(builder, self.stage, self.target);
+ } else {
+ builder.info(&format!("skipping Install miri stage{} ({})", self.stage, self.target));
+ }
+ };
Rustfmt, "rustfmt", Self::should_build(_config), only_hosts: true, {
if builder.ensure(dist::Rustfmt { stage: self.stage, target: self.target }).is_some() ||
Self::should_install(builder) {