Skip to content

Commit 1021cbb

Browse files
committed
[Wasm64] Enable import/export name minification with MEMORY64
Also add a new code size test that uses MEMORY64.
1 parent 6675055 commit 1021cbb

8 files changed

+11
-2
lines changed

emcc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,8 +2546,6 @@ def check_memory_setting(setting):
25462546
if not settings.DISABLE_EXCEPTION_CATCHING:
25472547
exit_with_error('MEMORY64 is not compatible with DISABLE_EXCEPTION_CATCHING=0')
25482548
settings.WASM_BIGINT = 1
2549-
settings.MINIFY_WASM_IMPORTS_AND_EXPORTS = 0
2550-
settings.MINIFY_WASM_IMPORTED_MODULES = 0
25512549

25522550
if settings.WASM_BIGINT:
25532551
settings.LEGALIZE_JS_FFI = 0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
a
2+
b
3+
c
4+
d
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$__wasm_call_ctors
2+
$add
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4077
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
302

test/test_other.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7787,6 +7787,7 @@ def strip_numeric_suffixes(funcname):
77877787
'Os_mr': (['-Os', '-sMINIMAL_RUNTIME'], [], [], 74), # noqa
77887788
# EVAL_CTORS also removes the __wasm_call_ctors function
77897789
'Oz-ctors': (['-Oz', '-sEVAL_CTORS'], [], []), # noqa
7790+
'64': (['-Oz', '-sMEMORY64', '-Wno-experimental'], [], []), # noqa
77907791
})
77917792
def test_metadce_minimal(self, *args):
77927793
self.set_setting('INCOMING_MODULE_JS_API', [])

0 commit comments

Comments
 (0)