Skip to content

Commit b22b49c

Browse files
Merge pull request #167 from GoodNotes/filesystem_support
Add filesystem support to WASM build for custom font loading
2 parents 139d503 + d4873b1 commit b22b49c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/wasm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,9 @@ def run_task_generate():
752752
"-s",
753753
"ALLOW_TABLE_GROWTH",
754754
"-s",
755-
'EXPORTED_RUNTIME_METHODS=\'["ccall", "cwrap", "wasmExports", "HEAP8", "HEAP16", "HEAP32", "HEAPU8", "HEAPU16", "HEAPU32", "HEAPF32", "HEAPF64", "addFunction", "removeFunction", "setValue"]\'',
755+
'EXPORTED_RUNTIME_METHODS=\'["ccall", "cwrap", "wasmExports", "HEAP8", "HEAP16", "HEAP32", "HEAPU8", "HEAPU16", "HEAPU32", "HEAPF32", "HEAPF64", "addFunction", "removeFunction", "setValue", "FS"]\'',
756+
"-s",
757+
"FORCE_FILESYSTEM=1",
756758
"custom.cpp",
757759
lib_file_out,
758760
"-I{0}".format(include_dir),

0 commit comments

Comments
 (0)