Skip to content

Commit

Permalink
Compiletest libc dependency can be unix-only
Browse files Browse the repository at this point in the history
In main.rs libc is imported as:

    #[cfg(unix)]
    extern crate libc;
  • Loading branch information
dtolnay committed Nov 26, 2017
1 parent 2c11555 commit 5d8d04a
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 5d8d04a

Please sign in to comment.