2012-12-03 16:48:01 -08:00
|
|
|
// Copyright 2012 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.
|
|
|
|
|
2012-10-03 20:32:30 -04:00
|
|
|
#[cfg(rustdoc)]
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate this = "rustdoc";
|
2012-10-03 20:32:30 -04:00
|
|
|
|
2012-11-06 19:44:58 -08:00
|
|
|
#[cfg(rustc)]
|
2014-02-14 10:10:06 -08:00
|
|
|
extern crate this = "rustc";
|
2012-11-06 19:44:58 -08:00
|
|
|
|
2014-03-11 13:38:36 -07:00
|
|
|
#[cfg(not(stage0))]
|
|
|
|
fn main() { this::main() }
|
2014-02-26 13:03:40 -08:00
|
|
|
|
2014-03-11 13:38:36 -07:00
|
|
|
#[cfg(stage0)]
|
2014-02-26 13:03:40 -08:00
|
|
|
#[start]
|
|
|
|
fn start(argc: int, argv: **u8) -> int { native::start(argc, argv, this::main) }
|