From 52189d4a654b1d3cd89667f00b8cb00a9be29631 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Sat, 20 Jan 2024 22:56:19 +0000 Subject: [PATCH] fix memory issue with long sql strings fixes #561 thanks @kripken for the fix: https://github.com/sql-js/sql.js/issues/561#issuecomment-1902243484 --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d487e496..450d8e6b 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,8 @@ EMFLAGS_ASM_MEMORY_GROWTH = \ EMFLAGS_WASM = \ -s WASM=1 \ - -s ALLOW_MEMORY_GROWTH=1 + -s ALLOW_MEMORY_GROWTH=1 \ + -s STACK_SIZE=5MB EMFLAGS_OPTIMIZED= \ -Oz \ @@ -56,7 +57,7 @@ EMFLAGS_OPTIMIZED= \ --closure 1 EMFLAGS_DEBUG = \ - -s ASSERTIONS=1 \ + -s ASSERTIONS=2 \ -O1 BITCODE_FILES = out/sqlite3.bc out/extension-functions.bc