Skip to content

Commit

Permalink
Rollup merge of rust-lang#46275 - dtolnay:compiletest-libc, r=Mark-Si…
Browse files Browse the repository at this point in the history
…mulacrum

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.
  • Loading branch information
kennytm authored Nov 27, 2017
2 parents 7707b18 + 5d8d04a commit 81ba352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ filetime = "0.1"
getopts = "0.2"
log = "0.3"
rustc-serialize = "0.3"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[target.'cfg(windows)'.dependencies]
Expand Down

0 comments on commit 81ba352

Please sign in to comment.