mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-20 12:59:28 +08:00
Fix build on some older versions of Rust
This commit is contained in:
@@ -377,7 +377,10 @@ mod bindings {
|
||||
fn generating_bundled_bindings() -> bool {
|
||||
// Hacky way to know if we're generating the bundled bindings
|
||||
println!("cargo:rerun-if-env-changed=LIBSQLITE3_SYS_BUNDLING");
|
||||
matches!(std::env::var("LIBSQLITE3_SYS_BUNDLING"), Ok(v) if v != "0")
|
||||
match std::env::var("LIBSQLITE3_SYS_BUNDLING") {
|
||||
Ok(v) => v != "0",
|
||||
Err(_) => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_to_out_dir(header: HeaderLocation, out_path: &Path) {
|
||||
|
Reference in New Issue
Block a user