Skip to content

Commit 15eee57

Browse files
committed
configure compound select through env var
1 parent 0ef59ff commit 15eee57

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libsql-ffi/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
386386
}
387387
println!("cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH");
388388

389+
if let Ok(limit) = env::var("SQLITE_LIMIT_COMPOUND_SELECT") {
390+
cfg.flag(&format!("-DSQLITE_LIMIT_COMPOUND_SELECT={limit}"));
391+
}
392+
println!("cargo:rerun-if-env-changed=SQLITE_LIMIT_COMPOUND_SELECT");
393+
389394
if let Ok(limit) = env::var("SQLITE_MAX_COLUMN") {
390395
cfg.flag(&format!("-DSQLITE_MAX_COLUMN={limit}"));
391396
}

0 commit comments

Comments
 (0)