From 5d8d04ab4a055aab8e8537a3c6f1fdcf05c87261 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 26 Nov 2017 05:08:23 -0800 Subject: [PATCH] Compiletest libc dependency can be unix-only In main.rs libc is imported as: #[cfg(unix)] extern crate libc; --- src/tools/compiletest/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/compiletest/Cargo.toml b/src/tools/compiletest/Cargo.toml index d4d567e63c017..6fc9423a4139a 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]