Skip to content

Commit 53e370a

Browse files
authored
Move a comment to its proper place. NFC (#13717)
1 parent aacc0c9 commit 53e370a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emscripten.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ def remove_trailing_zeros(memfile):
379379

380380
def finalize_wasm(infile, outfile, memfile, DEBUG):
381381
building.save_intermediate(infile, 'base.wasm')
382+
# tell binaryen to look at the features section, and if there isn't one, to use MVP
383+
# (which matches what llvm+lld has given us)
382384
args = ['--detect-features', '--minimize-wasm-changes']
383385

384386
# if we don't need to modify the wasm, don't tell finalize to emit a wasm file
@@ -393,8 +395,6 @@ def finalize_wasm(infile, outfile, memfile, DEBUG):
393395
building.save_intermediate(infile + '.map', 'base_wasm.map')
394396
args += ['--output-source-map-url=' + shared.Settings.SOURCE_MAP_BASE + os.path.basename(outfile) + '.map']
395397
modify_wasm = True
396-
# tell binaryen to look at the features section, and if there isn't one, to use MVP
397-
# (which matches what llvm+lld has given us)
398398
if shared.Settings.DEBUG_LEVEL >= 2 or shared.Settings.ASYNCIFY_ADD or shared.Settings.ASYNCIFY_ADVISE or shared.Settings.ASYNCIFY_ONLY or shared.Settings.ASYNCIFY_REMOVE or shared.Settings.EMIT_SYMBOL_MAP or shared.Settings.PROFILING_FUNCS:
399399
args.append('-g')
400400
if shared.Settings.WASM_BIGINT:

0 commit comments

Comments
 (0)