Skip to content

Commit 81ba352

Browse files
authored
Rollup merge of #46275 - dtolnay:compiletest-libc, r=Mark-Simulacrum
Compiletest libc dependency can be unix-only In main.rs libc is imported as: ```rust #[cfg(unix)] extern crate libc; ``` This came up in Manishearth/compiletest-rs#90.
2 parents 7707b18 + 5d8d04a commit 81ba352

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/Cargo.toml

+2
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)