aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-03 18:05:27 +0000
committerstephan <stephan@noemail.net>2022-10-03 18:05:27 +0000
commit4b074692f45fb57ec8bd3b718cbb920ff2a40a69 (patch)
treec4e6ae1d6790294fa527343309dafe2e1aa51c1f /ext
parent57956a9c86d19aa9728d58e015fa87b0acd5a99a (diff)
downloadsqlite-4b074692f45fb57ec8bd3b718cbb920ff2a40a69.tar.gz
sqlite-4b074692f45fb57ec8bd3b718cbb920ff2a40a69.zip
Omit WAL mode from the wasm build.
FossilOrigin-Name: 88efe2a62b81e5ee9119f54204e397fda59666a327158c7b7c972e84a716869e
Diffstat (limited to 'ext')
-rw-r--r--ext/wasm/GNUmakefile1
-rw-r--r--ext/wasm/api/sqlite3-wasm.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/wasm/GNUmakefile b/ext/wasm/GNUmakefile
index 94cb17a72..f6d2a50c9 100644
--- a/ext/wasm/GNUmakefile
+++ b/ext/wasm/GNUmakefile
@@ -63,6 +63,7 @@ SQLITE_OPT = \
-DSQLITE_OMIT_DEPRECATED \
-DSQLITE_OMIT_UTF16 \
-DSQLITE_OMIT_SHARED_CACHE \
+ -DSQLITE_OMIT_WAL \
-DSQLITE_THREADSAFE=0 \
-DSQLITE_TEMP_STORE=3 \
-DSQLITE_OS_KV_OPTIONAL=1 \
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c
index 99196db15..aaf6a7856 100644
--- a/ext/wasm/api/sqlite3-wasm.c
+++ b/ext/wasm/api/sqlite3-wasm.c
@@ -55,6 +55,9 @@
#ifndef SQLITE_THREADSAFE
# define SQLITE_THREADSAFE 0
#endif
+#ifndef SQLITE_OMIT_WAL
+# define SQLITE_OMIT_WAL
+#endif
#include <assert.h>
#include "sqlite3.c" /* yes, .c instead of .h. */