File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2335,10 +2335,12 @@ def get_full_import_name(name):
2335
2335
'_emscripten_stack_get_end' ]
2336
2336
2337
2337
# Any "pointers" passed to JS will now be i64's, in both modes.
2338
+ # Also turn off minifying, which clashes with instrumented functions in preamble.js
2338
2339
if settings .MEMORY64 :
2339
2340
if settings_map .get ('WASM_BIGINT' ) == '0' :
2340
2341
exit_with_error ('MEMORY64 is not compatible with WASM_BIGINT=0' )
2341
2342
settings .WASM_BIGINT = 1
2343
+ settings .MINIFY_WASM_IMPORTS_AND_EXPORTS = 0
2342
2344
2343
2345
# check if we can address the 2GB mark and higher: either if we start at
2344
2346
# 2GB, or if we allow growth to either any amount or to 2GB or more.
Original file line number Diff line number Diff line change @@ -757,7 +757,8 @@ function instrumentWasmTableWithAbort() {
757
757
// BigInts. For now we keep JS as much the same as it always was, that is,
758
758
// stackAlloc() receives and returns a Number from the JS point of view -
759
759
// we translate BigInts automatically for that.
760
- // TODO: support minified export names
760
+ // TODO: support minified export names, so we can turn MINIFY_WASM_IMPORTS_AND_EXPORTS
761
+ // back on for MEMORY64.
761
762
function instrumentWasmExportsForMemory64 ( exports ) {
762
763
var instExports = { } ;
763
764
for ( var name in exports ) {
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ var ENVIRONMENT_MAY_BE_SHELL = 1;
143
143
var ENVIRONMENT_MAY_BE_WEBVIEW = 1 ;
144
144
145
145
// Whether to minify import and export names in the minify_wasm_js stage.
146
+ // Currently always off for MEMORY64.
146
147
var MINIFY_WASM_IMPORTS_AND_EXPORTS = 0 ;
147
148
148
149
// Whether to minify imported module names.
You can’t perform that action at this time.
0 commit comments