Skip to content

Commit 03f8c22

Browse files
committed
include constants.h for regexp build
1 parent 738d676 commit 03f8c22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libsql-ffi/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
268268
sqlean_sources.extend(glob(&full_pattern).unwrap().filter_map(Result::ok));
269269
}
270270

271+
if cfg!(feature = "sqlean-extension-regexp") {
272+
cfg.flag("-include")
273+
.flag(format!("{BUNDLED_DIR}/sqlean/regexp/constants.h"));
274+
}
275+
271276
cfg.files(sqlean_sources);
272277

273278
let sqlean = Path::new(&env::var("OUT_DIR").unwrap()).join("sqlite3-sqlean-generated.c");

0 commit comments

Comments
 (0)