diff options
| author | bors <bors@rust-lang.org> | 2014-06-09 15:52:07 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-09 15:52:07 -0700 |
| commit | 0ea7aa30cc864d00fc30b9ba610f2daefab4e850 (patch) | |
| tree | 2f3216efe5cc25851595c14d803dc69738030a72 /src/liballoc | |
| parent | b6146e652ae7f6d373d55dd021dc50cb00e0caf8 (diff) | |
| parent | deecda6a94b31489045d420f16840a72c44af7e1 (diff) | |
| download | rust-0ea7aa30cc864d00fc30b9ba610f2daefab4e850.tar.gz rust-0ea7aa30cc864d00fc30b9ba610f2daefab4e850.zip | |
auto merge of #14554 : kmcallister/rust/plugin_registrar, r=cmr
This implements the design in rust-lang/rfcs#86. It shouldn't be merged until that RFC is accepted, but it would be great if somebody has time to review the code before then.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/lib.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index ca7ed6f4ba0..7e2c9a75fad 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -70,8 +70,14 @@ #![no_std] #![feature(phase)] +#[cfg(stage0)] #[phase(syntax, link)] extern crate core; + +#[cfg(not(stage0))] +#[phase(plugin, link)] +extern crate core; + extern crate libc; @@ -80,8 +86,10 @@ extern crate libc; #[cfg(test)] extern crate debug; #[cfg(test)] extern crate sync; #[cfg(test)] extern crate native; -#[cfg(test)] #[phase(syntax, link)] extern crate std; -#[cfg(test)] #[phase(syntax, link)] extern crate log; +#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std; +#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log; +#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std; +#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log; // Heaps provided for low-level allocation strategies |
