pub fn build(&mut self) {
        unsafe {
            job::setup();
        }

        if let Subcommand::Clean = self.flags.cmd {
            return clean::clean(self);
        }

        self.verbose("finding compilers");
        cc::find(self);
        self.verbose("running sanity check");
        sanity::check(self);
        self.verbose("collecting channel variables");
        channel::collect(self);
        // If local-rust is the same major.minor as the current version, then force a local-rebuild
        let local_version_verbose = output(
            Command::new(&self.rustc).arg("--version").arg("--verbose"));
        let local_release = local_version_verbose
            .lines().filter(|x| x.starts_with("release:"))
            .next().unwrap().trim_left_matches("release:").trim();
        if local_release.split('.').take(2).eq(self.release.split('.').take(2)) {
            self.verbose(&format!("auto-detected local-rebuild {}", local_release));
            self.local_rebuild = true;
        }
        self.verbose("updating submodules");
        self.update_submodules();
        self.verbose("learning about cargo");
        metadata::build(self);

        step::run(self);
    }
/// Executes the entire build, as configured by the flags and configuration.
Executes the entire build, as configured by the flags and configuration.
Executes the entire build as configured by the flags and configuration .
pub fn build(&mut self) {
        unsafe {
            job::setup();
        }
        if let Subcommand::Clean = self.flags.cmd {
            return clean::clean(self);
        }
        self.verbose("finding compilers");
        cc::find(self);
        self.verbose("running sanity check");
        sanity::check(self);
        self.verbose("collecting channel variables");
        channel::collect(self);
        // If local-rust is the same major.minor as the current version, then force a local-rebuild
        let local_version_verbose = output(
            Command::new(&self.rustc).arg("--version").arg("--verbose"));
        let local_release = local_version_verbose
            .lines().filter(|x| x.starts_with("release:"))
            .next().unwrap().trim_left_matches("release:").trim();
        if local_release.split('.').take(2).eq(self.release.split('.').take(2)) {
            self.verbose(&format!("auto-detected local-rebuild {}", local_release));
            self.local_rebuild = true;
        }
        self.verbose("updating submodules");
        self.update_submodules();
        self.verbose("learning about cargo");
        metadata::build(self);
        step::run(self);
    }
pub fn build ( & mut self ) { unsafe { job :: setup ( ) ; } if let Subcommand :: Clean = self . flags . cmd { return clean :: clean ( self ) ; } self . verbose ( " " ) ; cc :: find ( self ) ; self . verbose ( " " ) ; sanity :: check ( self ) ; self . verbose ( " " ) ; channel :: collect ( self ) ; // If local-rust is the same major.minor as the current version, then force a local-rebuild let local_version_verbose = output ( Command :: new ( & self . rustc ) . arg ( " " ) . arg ( " " ) ) ; let local_release = local_version_verbose . lines ( ) . filter ( | x | x . starts_with ( " " ) ) . next ( ) . unwrap ( ) . trim_left_matches ( " " ) . trim ( ) ; if local_release . split ( '.' ) . take ( 2 ) . eq ( self . release . split ( '.' ) . take ( 2 ) ) { self . verbose ( & format ! ( " " local_release ) ) ; self . local_rebuild = true ; } self . verbose ( " " ) ; self . update_submodules ( ) ; self . verbose ( " " ) ; metadata :: build ( self ) ; step :: run ( self ) ; }
Executes the entire build, as configured by the flags and configuration.
Executes the entire build as configured by the flags and configuration .
&mut self
&mut self