diff options
| author | Keegan McAllister <kmcallister@mozilla.com> | 2014-05-24 21:15:16 -0700 |
|---|---|---|
| committer | Keegan McAllister <kmcallister@mozilla.com> | 2014-06-09 14:29:30 -0700 |
| commit | ffb2f12ed89213f96561dfbece0751ac870e2c40 (patch) | |
| tree | 58e38537d628abdb2a9a3e2cfb6e6b84817a7ead /src/librand | |
| parent | 6d15c6749c30d9077c6e12af3be64c5f68fafcff (diff) | |
| download | rust-ffb2f12ed89213f96561dfbece0751ac870e2c40.tar.gz rust-ffb2f12ed89213f96561dfbece0751ac870e2c40.zip | |
Use phase(plugin) in bootstrap crates
Do this to avoid warnings on post-stage0 builds.
Diffstat (limited to 'src/librand')
| -rw-r--r-- | src/librand/lib.rs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/librand/lib.rs b/src/librand/lib.rs index 7a12dcf9f7f..1f7216fc1a3 100644 --- a/src/librand/lib.rs +++ b/src/librand/lib.rs @@ -28,13 +28,28 @@ #![no_std] #![experimental] +#[cfg(stage0)] #[phase(syntax, link)] extern crate core; +#[cfg(not(stage0))] +#[phase(plugin, link)] +extern crate core; + +#[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; + #[cfg(test)] extern crate native; #[cfg(test)] extern crate debug; -#[cfg(test)] #[phase(syntax, link)] extern crate std; -#[cfg(test)] #[phase(syntax, link)] extern crate log; use core::prelude::*; |
