Skip to content

Commit

Permalink
use vcpkg only from *-msvc targets
Browse files Browse the repository at this point in the history
for other targets (`*-gnu` and `*-gnullvm`) pkg-config is usually used
  • Loading branch information
ognevny authored Mar 26, 2024
1 parent c012613 commit 1ad2165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion curl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand All @@ -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;
}
Expand Down

0 comments on commit 1ad2165

Please sign in to comment.