wasmPlugin({
emccArgs: [
"-Wall", "-Os ",
"-sSTRICT=1 ",
"-sMALLOC=emmalloc",
"-sFILESYSTEM=0 ",
"-sMODULARIZE=1 ",
"-sSINGLE_FILE=1 ",
"-sEXPORT_ES6=1 ",
"-sUSE_ES6_IMPORT_META=0 ",
"-sENVIRONMENT='web,webview,worker' ",
"-sEXPORTED_FUNCTIONS='_malloc','_free','_getInitialTime','_getFinalTime','_getSaveper','_setLookup','_runModelWithBuffers']",
"-sEXPORTED_RUNTIME_METHODS=['cwrap']",
"-sASSERTIONS=1"] }),
In discussion thread #522, @serman noted an issue with passing
-sparameters:It's interesting that in many of the Emscripten error messages, they show
-sarguments with a space, and historically in SDE we have used a space as well, but it looks like the Emscripten documentation was amended at some point to recommend NOT including a space:https://emscripten.org/docs/tools_reference/emcc.html