about summary refs log tree commit diff
path: root/src/libterm/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libterm/lib.rs')
-rw-r--r--src/libterm/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs
index 3a442080077..dd42bede13a 100644
--- a/src/libterm/lib.rs
+++ b/src/libterm/lib.rs
@@ -52,7 +52,13 @@
 
 #![deny(missing_docs)]
 
-#[phase(plugin, link)] extern crate log;
+#[cfg(stage0)]
+#[phase(plugin, link)]
+extern crate log;
+
+#[cfg(not(stage0))]
+#[macro_use]
+extern crate log;
 
 pub use terminfo::TerminfoTerminal;
 #[cfg(windows)]