Skip to content

Commit a9a823e

Browse files
authored
Flush stdout and stderr before calling os.execv. NFC (#20910)
This seems to be needed on older versions of python but not on python3.11 on my machine. It in recommended practice according to the python docs.
1 parent 604eeef commit a9a823e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

emcc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,8 @@ def exec_subprocess_and_exit(cmd):
940940
sys.exit(0)
941941
else:
942942
shared.print_compiler_stage(cmd)
943+
sys.stdout.flush()
944+
sys.stderr.flush()
943945
os.execv(cmd[0], cmd)
944946

945947

0 commit comments

Comments
 (0)