about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2020-04-10 22:42:19 +0200
committerMark Rousskov <mark.simulacrum@gmail.com>2020-04-11 11:07:04 -0400
commit45ede927fb01ea7928267cc4caa2db75fd3be318 (patch)
tree526306c82224b1ce72216986d036b5fd77375c14 /src/librustc_driver
parent1f3b65921effc08ea1171bdbbcad70765ecacb22 (diff)
downloadrust-45ede927fb01ea7928267cc4caa2db75fd3be318.tar.gz
rust-45ede927fb01ea7928267cc4caa2db75fd3be318.zip
Depend on libc from crates.io
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/Cargo.toml1
-rw-r--r--src/librustc_driver/lib.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_driver/Cargo.toml b/src/librustc_driver/Cargo.toml
index 652f16c2e08..cfd103aed32 100644
--- a/src/librustc_driver/Cargo.toml
+++ b/src/librustc_driver/Cargo.toml
@@ -11,6 +11,7 @@ crate-type = ["dylib"]
 
 [dependencies]
 lazy_static = "1.0"
+libc = "0.2"
 log = "0.4"
 env_logger = { version = "0.7", default-features = false }
 rustc_middle = { path = "../librustc_middle" }
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index acf8f1adbc2..ad2d7b12d4a 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -9,8 +9,6 @@
 #![recursion_limit = "256"]
 
 pub extern crate getopts;
-#[cfg(unix)]
-extern crate libc;
 #[macro_use]
 extern crate log;
 #[macro_use]