Skip to content

Commit

Permalink
Flush stdout and stderr before calling os.execv. NFC
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sbc100 committed Dec 13, 2023
1 parent 604eeef commit eb3627d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,8 @@ def exec_subprocess_and_exit(cmd):
sys.exit(0)
else:
shared.print_compiler_stage(cmd)
sys.stdout.flush()
sys.stderr.flush()
os.execv(cmd[0], cmd)


Expand Down

0 comments on commit eb3627d

Please sign in to comment.