Depend on libc from crates.io

This commit is contained in:
Luca Barbieri 2020-04-10 22:42:19 +02:00 committed by Mark Rousskov
parent 1f3b65921e
commit 45ede927fb
9 changed files with 8 additions and 8 deletions

View file

@ -27,6 +27,7 @@ smallvec = { version = "1.0", features = ["union", "may_dangle"] }
rustc_index = { path = "../librustc_index", package = "rustc_index" }
bitflags = "1.2.1"
measureme = "0.7.1"
libc = "0.2"
[dependencies.parking_lot]
version = "0.10"

View file

@ -26,8 +26,6 @@
#[macro_use]
extern crate log;
#[cfg(unix)]
extern crate libc;
#[macro_use]
extern crate cfg_if;

View file

@ -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" }

View file

@ -9,8 +9,6 @@
#![recursion_limit = "256"]
pub extern crate getopts;
#[cfg(unix)]
extern crate libc;
#[macro_use]
extern crate log;
#[macro_use]

View file

@ -10,6 +10,7 @@ path = "lib.rs"
doctest = false
[dependencies]
libc = "0.2"
log = "0.4"
rayon = { version = "0.3.0", package = "rustc-rayon" }
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

View file

@ -6,9 +6,6 @@
#![feature(generators)]
#![recursion_limit = "256"]
#[cfg(unix)]
extern crate libc;
mod callbacks;
pub mod interface;
mod passes;

View file

@ -11,6 +11,7 @@ doctest = false
[dependencies]
flate2 = "1.0"
libc = "0.2"
log = "0.4"
memmap = "0.7"
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

View file

@ -10,7 +10,6 @@
#![feature(stmt_expr_attributes)]
#![recursion_limit = "256"]
extern crate libc;
extern crate proc_macro;
#[macro_use]