Skip to content

Commit 1ad2165

Browse files
authored
use vcpkg only from *-msvc targets
for other targets (`*-gnu` and `*-gnullvm`) pkg-config is usually used
1 parent c012613 commit 1ad2165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

curl-sys/build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fn main() {
77
println!("cargo:rerun-if-changed=curl");
88
let target = env::var("TARGET").unwrap();
99
let windows = target.contains("windows");
10+
let msvc = target.contains("msvc");
1011

1112
if cfg!(feature = "mesalink") {
1213
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() {
2829
}
2930

3031
// Next, fall back and try to use pkg-config if its available.
31-
if windows {
32+
if msvc {
3233
if try_vcpkg() {
3334
return;
3435
}

0 commit comments

Comments
 (0)