You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-libsqlite3-sys/Restrict-vcpkg-feature.patch

22 lines
761 B

diff -up libsqlite3-sys-0.23.1/build.rs.orig libsqlite3-sys-0.23.1/build.rs
--- libsqlite3-sys-0.23.1/build.rs.orig 1973-11-29 22:33:09.000000000 +0100
+++ libsqlite3-sys-0.23.1/build.rs 2021-11-12 01:46:07.337024842 +0100
@@ -423,6 +423,7 @@ mod build_linked {
return HeaderLocation::FromEnvironment;
}
+ #[cfg(all(feature = "vcpkg", target_env = "msvc"))]
if let Some(header) = try_vcpkg() {
return header;
}
@@ -450,7 +451,8 @@ mod build_linked {
}
}
}
-
+
+ #[cfg(all(feature = "vcpkg", target_env = "msvc"))]
fn try_vcpkg() -> Option<HeaderLocation> {
if cfg!(feature = "vcpkg") && is_compiler("msvc") {
// See if vcpkg can find it.