Skip to content

Commit dd53f95

Browse files
author
Christopher J. Brody
committed
build dist/sql-asm-debug.js with -s ALLOW_MEMORY_GROWTH=1
1 parent 1a5bcdd commit dd53f95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ all: optimized debug worker
8282
debug: dist/sql-asm-debug.js dist/sql-wasm-debug.js
8383

8484
dist/sql-asm-debug.js: $(BITCODE_FILES) $(OUTPUT_WRAPPER_FILES) $(OUTPUT_API_FILES) $(EXPORTED_METHODS_JSON_FILES)
85-
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(EMFLAGS_ASM) $(BITCODE_FILES) $(EMFLAGS_PRE_JS_FILES) -o $@
85+
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(EMFLAGS_ASM_MEMORY_GROWTH) $(BITCODE_FILES) $(EMFLAGS_PRE_JS_FILES) -o $@
8686
mv $@ out/tmp-raw.js
8787
cat src/shell-pre.js out/tmp-raw.js src/shell-post.js > $@
8888
rm out/tmp-raw.js

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ custom build by [@brodybits (Christopher J. Brody)](https://github.com/brodybits
44

55
- support FTS4, FTS5, R-Tree, and JSON1
66
- some more OMIT build flags to omit some obsolete SQLite features
7+
- `dist/sql-asm-debug.js` now built with `-s ALLOW_MEMORY_GROWTH=1` to allow the allocated memory buffer to grow as needed
78
- no `dist` JS or WASM artifacts are committed in this version of sql.js
89

910
<!-- NOT INCLUDED in custom build:

0 commit comments

Comments
 (0)