Skip to content

Commit f2db899

Browse files
committed
feedback
1 parent d810c5f commit f2db899

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/link.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,14 +1851,14 @@ def phase_link(linker_arguments, wasm_target, js_syms):
18511851
rtn = None
18521852
if settings.LINKABLE:
18531853
# In LINKABLE mode we pass `--export-dynamic` along with `--whole-archive`. This results
1854-
# over 7000 exports, which cannot be distingished from the few symbols we explicitly
1854+
# in over 7000 exports, which cannot be distinguished from the few symbols we explicitly
18551855
# export via EMSCRIPTEN_KEEPALIVE or EXPORTED_FUNCTIONS.
1856-
# In order to be able limit the number of symbols we export on the `Module` object we
1857-
# run the linker twice in this mode.
1856+
# In order to avoid unnecessary exported symbols on the `Module` object we run the linker
1857+
# twice in this mode:
18581858
# 1. Without `--export-dynamic` to get the base exports
18591859
# 2. With `--export-dynamic` to get the actual linkable Wasm binary
18601860
# TODO(sbc): Remove this double execution of wasm-ld if we ever find a way to
1861-
# distingiush EMSCRIPTEN_KEEPALIVE exports from `--export-dynamic` exports.
1861+
# distinguish EMSCRIPTEN_KEEPALIVE exports from `--export-dynamic` exports.
18621862
settings.LINKABLE = False
18631863
building.link_lld(linker_arguments, wasm_target, external_symbols=js_syms)
18641864
settings.LINKABLE = True

0 commit comments

Comments
 (0)