Remove redundant post_finalize.wasm intermediate. NFC The `run_binaryen_command` automatically saves intermeidates after each call so `emcc-1-wasm-emscripten-finalize.wasm` already exists.
diff --git a/emscripten.py b/emscripten.py index 95ac697..8e3a865 100644 --- a/emscripten.py +++ b/emscripten.py
@@ -437,9 +437,7 @@ outfile=outfile if modify_wasm else None, args=args, stdout=subprocess.PIPE) - if modify_wasm: - building.save_intermediate(infile, 'post_finalize.wasm') - elif infile != outfile: + if infile != outfile and not modify_wasm: shutil.copy(infile, outfile) if shared.Settings.GENERATE_SOURCE_MAP: building.save_intermediate(infile + '.map', 'post_finalize.map')