diff options
| author | David Tolnay <dtolnay@gmail.com> | 2017-11-26 05:08:23 -0800 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2017-11-26 05:08:31 -0800 |
| commit | 5d8d04ab4a055aab8e8537a3c6f1fdcf05c87261 (patch) | |
| tree | 530f789bb5c78303102ddb5c06f11ceb55ea6099 | |
| parent | 2c115551c425c5180d89bfc4b7ca0405b1d00b25 (diff) | |
| download | rust-5d8d04ab4a055aab8e8537a3c6f1fdcf05c87261.tar.gz rust-5d8d04ab4a055aab8e8537a3c6f1fdcf05c87261.zip | |
Compiletest libc dependency can be unix-only
In main.rs libc is imported as:
#[cfg(unix)]
extern crate libc;
| -rw-r--r-- | src/tools/compiletest/Cargo.toml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/Cargo.toml b/src/tools/compiletest/Cargo.toml index d4d567e63c0..6fc9423a413 100644 --- a/src/tools/compiletest/Cargo.toml +++ b/src/tools/compiletest/Cargo.toml @@ -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] |
