mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Merge pull request #522 from pimeys/master
Increase bundled SQLite variables and depth
This commit is contained in:
commit
c87c49cd35
@ -29,6 +29,7 @@ fn main() {
|
||||
mod build_bundled {
|
||||
use cc;
|
||||
use std::path::Path;
|
||||
use std::env;
|
||||
|
||||
pub fn main(out_dir: &str, out_path: &Path) {
|
||||
if cfg!(feature = "sqlcipher") {
|
||||
@ -79,6 +80,17 @@ mod build_bundled {
|
||||
if cfg!(feature = "session") {
|
||||
cfg.flag("-DSQLITE_ENABLE_SESSION");
|
||||
}
|
||||
|
||||
if let Ok(limit) = env::var("SQLITE_MAX_VARIABLE_NUMBER") {
|
||||
cfg.flag(&format!("-DSQLITE_MAX_VARIABLE_NUMBER={}", limit));
|
||||
}
|
||||
println!("cargo:rerun-if-env-changed=SQLITE_MAX_VARIABLE_NUMBER");
|
||||
|
||||
if let Ok(limit) = env::var("SQLITE_MAX_EXPR_DEPTH") {
|
||||
cfg.flag(&format!("-DSQLITE_MAX_EXPR_DEPTH={}", limit));
|
||||
}
|
||||
println!("cargo:rerun-if-env-changed=SQLITE_MAX_EXPR_DEPTH");
|
||||
|
||||
cfg.compile("libsqlite3.a");
|
||||
|
||||
println!("cargo:lib_dir={}", out_dir);
|
||||
|
Loading…
Reference in New Issue
Block a user