about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-05-24 21:15:16 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-06-09 14:29:30 -0700
commitffb2f12ed89213f96561dfbece0751ac870e2c40 (patch)
tree58e38537d628abdb2a9a3e2cfb6e6b84817a7ead /src/libsyntax
parent6d15c6749c30d9077c6e12af3be64c5f68fafcff (diff)
downloadrust-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/libsyntax')
-rw-r--r--src/libsyntax/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 7fe67ad6f87..754518f5fea 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -32,8 +32,15 @@ This API is completely unstable and subject to change.
 
 extern crate serialize;
 extern crate term;
+
+#[cfg(stage0)]
 #[phase(syntax, link)]
 extern crate log;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
 extern crate fmt_macros;
 extern crate debug;