Skip to content

Commit 138126e

Browse files
authored
Rename binaryen pass --remove-memory -> --remove-memory-init. NFC (#23341)
1 parent ff25a12 commit 138126e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/building.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,11 @@ def metadce(js_file, wasm_file, debug_info, last):
879879

880880

881881
def asyncify_lazy_load_code(wasm_target, debug):
882-
# create the lazy-loaded wasm. remove the memory segments from it, as memory
883-
# segments have already been applied by the initial wasm, and apply the knowledge
884-
# that it will only rewind, after which optimizations can remove some code
885-
args = ['--remove-memory', '--mod-asyncify-never-unwind']
882+
# Create the lazy-loaded wasm. Remove any active memory segments and the
883+
# start function from it (as these will segments have already been applied
884+
# by the initial wasm) and apply the knowledge that it will only rewind,
885+
# after which optimizations can remove some code
886+
args = ['--remove-memory-init', '--mod-asyncify-never-unwind']
886887
if settings.OPT_LEVEL > 0:
887888
args.append(opt_level_to_str(settings.OPT_LEVEL, settings.SHRINK_LEVEL))
888889
run_wasm_opt(wasm_target,

0 commit comments

Comments
 (0)