Artifact Content
Not logged in

Artifact 46a25b876bbca36e35f0e0b1c9fc0f14facd4ec8:

// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
//> or the MIT license
// <LICENSE-MIT or>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

//! rustbuild, the Rust build system
//! This is the entry point for the build system used to compile the `rustc`
//! compiler. Lots of documentation can be found in the `` file in the
//! parent directory, and otherwise documentation can be found throughout the `build`
//! directory in each respective module.


extern crate bootstrap;

use std::env;

use bootstrap::{Flags, Config, Build};

fn main() {
    let args = env::args().skip(1).collect::<Vec<_>>();
    let flags = Flags::parse(&args);
    let mut config = Config::parse(&, flags.config.clone());

    // compat with `./configure` while we're still using that
    if std::fs::metadata("").is_ok() {

    Build::new(flags, config).build();