Skip to content

Commit 80d3e9b

Browse files
committed
libsql-ffi: Use patched sqlite3.c for multiple ciphers
The sqlite3patched.c is the one that has sqlite3mc hooks in place so let's use that when the feature flag is enabled.
1 parent ef28558 commit 80d3e9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libsql-ffi/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,10 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
451451
)
452452
.unwrap();
453453

454+
// Copy the patched version of sqlite3.c that includes the necessary hooks
455+
// for SQLite3 Multiple Ciphers (like sqlite3mcHandleAttachKey)
454456
copy_with_cp(
455-
PathBuf::from(BUNDLED_DIR).join("src").join("sqlite3.c"),
457+
PathBuf::from(BUNDLED_DIR).join("SQLite3MultipleCiphers").join("src").join("sqlite3patched.c"),
456458
format!("{out_dir}/sqlite3mc/src/sqlite3.c"),
457459
)
458460
.unwrap();

0 commit comments

Comments
 (0)