mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-24 18:01:37 +08:00
Merge pull request #1324 from nopjia/master
Add SQLITE_MAX_COLUMN compile-time option
This commit is contained in:
commit
65e4be3a19
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user