You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it may legalize, and not see the proper getTempRet0 etc.
import names as the minification happens earlier, and then
it will not import things properly as the JS side has minified names.
emscripten-core#9879 documents this issue which hopefully we can fix later.
For now, just disable this specific optimization.
logger.debug('running post-meta-DCE cleanup on shell code: '+' '.join(passes))
2535
2535
js_file=Building.acorn_optimizer(js_file, passes)
2536
2536
# Also minify the names used between js and wasm, if we are emitting an optimized JS+wasm combo (then the JS knows how to load the minified names).
2537
-
# If we are building with DECLARE_ASM_MODULE_EXPORTS=0, we must *not* minify the exports from the wasm module, since in DECLARE_ASM_MODULE_EXPORTS=0 mode, the code that
2538
-
# reads out the exports is compacted by design that it does not have a chance to unminify the functions. If we are building with DECLARE_ASM_MODULE_EXPORTS=1, we might
2539
-
# as well minify wasm exports to regain some of the code size loss that setting DECLARE_ASM_MODULE_EXPORTS=1 caused.
2540
-
# ASYNCIFY_LAZY_LOAD_CODE disables minification because it runs after the wasm is completely finalized, and we need to be able to still
2541
-
# identify import names at that time. To avoid that, we would need to keep a mapping of the names and send that to binaryen.
0 commit comments