Fixed the lack of stdout being displayed when not in capture mode for meson_exe (meson --internal exe)

This commit is contained in:
dx-mon 2018-10-02 21:40:11 +01:00 committed by Jussi Pakkanen
parent 31e1e524ca
commit 65cb7b0241
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ def run_exe(exe):
if exe.capture and p.returncode == 0:
with open(exe.capture, 'wb') as output:
output.write(stdout)
else:
sys.stdout.buffer.write(stdout)
if stderr:
sys.stderr.buffer.write(stderr)
return p.returncode