Merge pull request #1317 from icp1994/force-link-sys-sqlite

Force linking against system sqlite libs
This commit is contained in:
gwenn 2023-04-22 16:36:21 +02:00 committed by GitHub
commit 13dc9df7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,11 @@ fn main() {
.expect("Could not copy bindings to output directory");
return;
}
if cfg!(all(
println!("cargo:rerun-if-env-changed=LIBSQLITE3_SYS_USE_PKG_CONFIG");
if env::var_os("LIBSQLITE3_SYS_USE_PKG_CONFIG").map_or(false, |s| s != "0") {
build_linked::main(&out_dir, &out_path);
} else if cfg!(all(
feature = "sqlcipher",
not(feature = "bundled-sqlcipher")
)) {