Do not use libc in profile on Windows

This commit is contained in:
Anthony Ramine 2016-05-17 01:12:10 +02:00
parent 043b375ce3
commit 7bc768f358
2 changed files with 4 additions and 1 deletions

View file

@ -15,7 +15,6 @@ util = {path = "../util"}
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
hbs-pow = "0.2"
log = "0.3.5"
libc = "0.2"
serde = "0.7"
serde_json = "0.7"
serde_macros = "0.7"
@ -26,3 +25,6 @@ task_info = {path = "../../support/rust-task_info"}
[target.'cfg(target_os = "linux")'.dependencies]
regex = "0.1.55"
[target.'cfg(not(target_os = "windows"))'.dependencies]
libc = "0.2"

View file

@ -17,6 +17,7 @@
extern crate alloc_jemalloc;
extern crate hbs_pow;
extern crate ipc_channel;
#[cfg(not(target_os = "windows"))]
extern crate libc;
#[macro_use]
extern crate log;