From b1f78067a5bee6d7dd017a55128d0b3a3e41d3e0 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 26 Jul 2023 09:43:42 +0200 Subject: [PATCH] Revert "Run pkg-config on MSVC" This reverts commit 491bd1e137d63999e7a38370b6c0c05954b1079f. Fixes https://github.com/rust-lang/libz-sys/issues/143. --- Cargo.toml | 2 +- build.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index effb241e..7421852c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libz-sys" -version = "1.1.11" +version = "1.1.10" authors = ["Alex Crichton ", "Josh Triplett ", "Sebastian Thiel "] links = "z" license = "MIT OR Apache-2.0" diff --git a/build.rs b/build.rs index 3feabe48..51ebe6bf 100644 --- a/build.rs +++ b/build.rs @@ -23,6 +23,7 @@ fn main() { let want_static = cfg!(feature = "static") || env::var("LIBZ_SYS_STATIC").unwrap_or(String::new()) == "1"; if !want_static && + !target.contains("msvc") && // pkg-config just never works here !(host_and_target_contain("freebsd") || host_and_target_contain("dragonfly")) {