add SQLITE_MAX_COLUMN compile option

This commit is contained in:
Nop Jiarathanakul 2023-05-09 13:19:25 -07:00
parent 1a82396f2e
commit 4c6d915d0f

View File

@ -268,6 +268,11 @@ mod build_bundled {
}
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") {
for extra in extras.split_whitespace() {
if extra.starts_with("-D") || extra.starts_with("-U") {