Merge pull request #1324 from nopjia/master

Add SQLITE_MAX_COLUMN compile-time option
This commit is contained in:
gwenn 2023-05-10 10:27:24 +02:00 committed by GitHub
commit 65e4be3a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,11 @@ mod build_bundled {
} }
println!("cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH"); println!("cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH");
if let Ok(limit) = env::var("SQLITE_MAX_COLUMN") {
cfg.flag(&format!("-DSQLITE_MAX_COLUMN={limit}"));
}
println!("cargo:rerun-if-env-changed=SQLITE_MAX_COLUMN");
if let Ok(extras) = env::var("LIBSQLITE3_FLAGS") { if let Ok(extras) = env::var("LIBSQLITE3_FLAGS") {
for extra in extras.split_whitespace() { for extra in extras.split_whitespace() {
if extra.starts_with("-D") || extra.starts_with("-U") { if extra.starts_with("-D") || extra.starts_with("-U") {