diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-26 13:03:40 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-27 12:03:58 -0800 |
| commit | 40ab198356bbec05b308b2e61ebc6fe9e23ade9d (patch) | |
| tree | a177fc5faeb60e7d2ca0ab5bc9b45f9f619087b8 /src/driver | |
| parent | cd9010c77e764e9348ecd92dc4a285f6514505dc (diff) | |
| download | rust-40ab198356bbec05b308b2e61ebc6fe9e23ade9d.tar.gz rust-40ab198356bbec05b308b2e61ebc6fe9e23ade9d.zip | |
rustc: Use libnative for the compiler
The compiler itself doesn't necessarily need any features of green threading such as spawning tasks and lots of I/O, so libnative is slightly more appropriate for rustc to use itself. This should also help the rusti bot which is currently incompatible with libuv.
Diffstat (limited to 'src/driver')
| -rw-r--r-- | src/driver/driver.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/driver/driver.rs b/src/driver/driver.rs index ca462fc7a39..0ceb12064b0 100644 --- a/src/driver/driver.rs +++ b/src/driver/driver.rs @@ -8,10 +8,15 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[no_uv]; + #[cfg(rustdoc)] extern crate this = "rustdoc"; #[cfg(rustc)] extern crate this = "rustc"; -fn main() { this::main() } +extern crate native; + +#[start] +fn start(argc: int, argv: **u8) -> int { native::start(argc, argv, this::main) } |
