Skip to content

Commit a35fd1a

Browse files
committed
add pcre2 header
1 parent f37d0b0 commit a35fd1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libsql-ffi/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
255255
if cfg!(feature = "sqlean-extension-regexp") {
256256
enabled_extensions.push("regexp");
257257
sqlean_patterns.push("regexp/*.c");
258+
sqlean_patterns.push("regexp/pcre2/pcre2_internal.h");
258259
sqlean_patterns.push("regexp/pcre2/*.c");
259-
sqlean_patterns.push("regexp/pcre2/*.h");
260260
}
261261

262262
if sqlean_patterns.is_empty() {
@@ -271,6 +271,7 @@ pub fn build_bundled(out_dir: &str, out_path: &Path) {
271271
}
272272

273273
if cfg!(feature = "sqlean-extension-regexp") {
274+
// PCRE2 needs some macroses defined externally in constants.h file
274275
cfg.flag("-include")
275276
.flag(format!("{BUNDLED_DIR}/sqlean/regexp/constants.h"));
276277
}

0 commit comments

Comments
 (0)