aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2016-08-25 00:03:02 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2016-08-26 20:46:42 -0400
commitb7757189e4eb8a17182d07cdcad53e8f5ebad0ce (patch)
treefd64a026c5c364ce296230ac40f68224318efbc7
parent3e09aa9f11e855bc0979d4e0920c1059a4c2e319 (diff)
downloadmeson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.zip
meson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.tar.gz
meson-b7757189e4eb8a17182d07cdcad53e8f5ebad0ce.tar.bz2
Echo stderr from captured command.
This helps with debugging if the command fails.
-rw-r--r--mesonbuild/scripts/meson_exe.py2
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):