mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
wasm: Update emscripten build config
enabled options: - EXPORT_ES6 > to import glue code in es6 module system - SINGLE_FILE > to build library as a single JS file, single file reduces loading latency - MODULARIZE > proper option to build es6 module (optimized) - EXPORTED_RUNTIME_METHODS > allow es6 module based glue code to import FS
This commit is contained in:
parent
99a841b404
commit
28ba5fe1b8
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ exe_suffix = 'js'
|
|||
|
||||
[built-in options]
|
||||
cpp_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions']
|
||||
cpp_link_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sFORCE_FILESYSTEM=1']
|
||||
cpp_link_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sEXPORT_ES6=1', '-sFORCE_FILESYSTEM=1', '-sMODULARIZE=1', '-sEXPORTED_RUNTIME_METHODS=FS', '-sSINGLE_FILE=1']
|
||||
#cpp_link_args = ['-Wshift-negative-value', '-flto', '-Os', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sFORCE_FILESYSTEM=1', '-g'] //enable g flag for wasm debugging
|
||||
|
||||
[host_machine]
|
||||
|
|
Loading…
Add table
Reference in a new issue