From 1ad2165fe6735e17900af5d0f7a4e29d2fccc83b Mon Sep 17 00:00:00 2001 From: Maksim Bondarenkov <119937608+ognevny@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:10:42 +0300 Subject: [PATCH] use vcpkg only from `*-msvc` targets for other targets (`*-gnu` and `*-gnullvm`) pkg-config is usually used --- curl-sys/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 7cc583158..c9f48842e 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -7,6 +7,7 @@ fn main() { println!("cargo:rerun-if-changed=curl"); let target = env::var("TARGET").unwrap(); let windows = target.contains("windows"); + let msvc = target.contains("msvc"); if cfg!(feature = "mesalink") { println!("cargo:warning=MesaLink support has been removed as of curl 7.82.0, will use default TLS backend instead."); @@ -28,7 +29,7 @@ fn main() { } // Next, fall back and try to use pkg-config if its available. - if windows { + if msvc { if try_vcpkg() { return; }