Skip to content

Commit 5d8d04a

Browse files
committed
Compiletest libc dependency can be unix-only
In main.rs libc is imported as: #[cfg(unix)] extern crate libc;
1 parent 2c11555 commit 5d8d04a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ filetime = "0.1"
1010
getopts = "0.2"
1111
log = "0.3"
1212
rustc-serialize = "0.3"
13+
14+
[target.'cfg(unix)'.dependencies]
1315
libc = "0.2"
1416

1517
[target.'cfg(windows)'.dependencies]

0 commit comments

Comments
 (0)