diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-11 13:38:36 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-21 12:03:13 -0700 |
| commit | ab1dd09d736fd443883ea4c1d8ec73ff285f6308 (patch) | |
| tree | b26f7fca7415e216cf61a92a8ac444d8ba5d257d /src/driver | |
| parent | 7b957a879bd5065005327b0d9912695e8750cefa (diff) | |
| download | rust-ab1dd09d736fd443883ea4c1d8ec73ff285f6308.tar.gz rust-ab1dd09d736fd443883ea4c1d8ec73ff285f6308.zip | |
rustc: Switch defaults from libgreen to libnative
The compiler will no longer inject libgreen as the default runtime for rust programs, this commit switches it over to libnative by default. Now that libnative has baked for some time, it is ready enough to start getting more serious usage as the default runtime for rustc generated binaries. We've found that there isn't really a correct decision in choosing a 1:1 or M:N runtime as a default for all applications, but it seems that a larger number of programs today would work more reasonable with a native default rather than a green default. With this commit come a number of bugfixes: * The main native task is now named "<main>" * The main native task has the stack bounds set up properly * #[no_uv] was renamed to #[no_start] * The core-run-destroy test was rewritten for both libnative and libgreen and one of the tests was modified to be more robust. * The process-detach test was locked to libgreen because it uses signal handling
Diffstat (limited to 'src/driver')
| -rw-r--r-- | src/driver/driver.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/driver/driver.rs b/src/driver/driver.rs index 0ceb12064b0..bd7096cda03 100644 --- a/src/driver/driver.rs +++ b/src/driver/driver.rs @@ -8,7 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[no_uv]; +#[no_uv]; // remove this after stage0 +#[allow(attribute_usage)]; // remove this after stage0 +extern crate native; // remove this after stage0 #[cfg(rustdoc)] extern crate this = "rustdoc"; @@ -16,7 +18,9 @@ extern crate this = "rustdoc"; #[cfg(rustc)] extern crate this = "rustc"; -extern crate native; +#[cfg(not(stage0))] +fn main() { this::main() } +#[cfg(stage0)] #[start] fn start(argc: int, argv: **u8) -> int { native::start(argc, argv, this::main) } |
