mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 15:39:28 +08:00
add SQLITE_MAX_COLUMN compile option
This commit is contained in:
parent
1a82396f2e
commit
4c6d915d0f
@ -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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user