Use phase(plugin) in bootstrap crates

Do this to avoid warnings on post-stage0 builds.
This commit is contained in:
Keegan McAllister
2014-05-24 21:15:16 -07:00
parent 6d15c6749c
commit ffb2f12ed8
15 changed files with 98 additions and 18 deletions

View File

@@ -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