Skip to content

Commit

Permalink
build dist/sql-asm-debug.js with -s ALLOW_MEMORY_GROWTH=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Brody committed Jan 12, 2020
1 parent 1a5bcdd commit dd53f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ all: optimized debug worker
debug: dist/sql-asm-debug.js dist/sql-wasm-debug.js

dist/sql-asm-debug.js: $(BITCODE_FILES) $(OUTPUT_WRAPPER_FILES) $(OUTPUT_API_FILES) $(EXPORTED_METHODS_JSON_FILES)
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(EMFLAGS_ASM) $(BITCODE_FILES) $(EMFLAGS_PRE_JS_FILES) -o $@
$(EMCC) $(EMFLAGS) $(EMFLAGS_DEBUG) $(EMFLAGS_ASM_MEMORY_GROWTH) $(BITCODE_FILES) $(EMFLAGS_PRE_JS_FILES) -o $@
mv $@ out/tmp-raw.js
cat src/shell-pre.js out/tmp-raw.js src/shell-post.js > $@
rm out/tmp-raw.js
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ custom build by [@brodybits (Christopher J. Brody)](https://github.com/brodybits

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

<!-- NOT INCLUDED in custom build:
Expand Down

0 comments on commit dd53f95

Please sign in to comment.