diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2016-08-25 00:03:02 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2016-08-26 20:46:42 -0400 |
commit | b7757189e4eb8a17182d07cdcad53e8f5ebad0ce (patch) | |
tree | fd64a026c5c364ce296230ac40f68224318efbc7 /mesonbuild | |
parent | 3e09aa9f11e855bc0979d4e0920c1059a4c2e319 (diff) | |
download | meson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.zip meson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.tar.gz meson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.tar.bz2 |
Echo stderr from captured command.
This helps with debugging if the command fails.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/scripts/meson_exe.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py index cdfed09..1a0fcda 100644 --- a/mesonbuild/scripts/meson_exe.py +++ b/mesonbuild/scripts/meson_exe.py @@ -63,6 +63,8 @@ def run_exe(exe): if exe.capture and p.returncode == 0: with open(exe.capture, 'wb') as output: output.write(stdout) + if stderr: + sys.stderr.buffer.write(stderr) return p.returncode def run(args): |