about summary refs log tree commit diff
path: root/src/librustc_trans/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_trans/lib.rs')
-rw-r--r--src/librustc_trans/lib.rs18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/librustc_trans/lib.rs b/src/librustc_trans/lib.rs
index 9dbff66aba2..705fecf4d19 100644
--- a/src/librustc_trans/lib.rs
+++ b/src/librustc_trans/lib.rs
@@ -37,11 +37,25 @@ extern crate graphviz;
 extern crate libc;
 extern crate rustc;
 extern crate rustc_back;
-#[phase(plugin, link)] extern crate log;
-#[phase(plugin, link)] extern crate syntax;
 extern crate serialize;
 extern crate "rustc_llvm" as llvm;
 
+#[cfg(stage0)]
+#[phase(plugin, link)]
+extern crate log;
+
+#[cfg(not(stage0))]
+#[macro_use]
+extern crate log;
+
+#[cfg(stage0)]
+#[phase(plugin, link)]
+extern crate syntax;
+
+#[cfg(not(stage0))]
+#[macro_use]
+extern crate syntax;
+
 pub use rustc::session;
 pub use rustc::metadata;
 pub use rustc::middle;