summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 8a584d6ddd..29b41151d4 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -366,7 +366,8 @@ def host_gcc_version(d, taskcontextonly=False):
366 try: 366 try:
367 env = os.environ.copy() 367 env = os.environ.copy()
368 env["PATH"] = d.getVar("PATH") 368 env["PATH"] = d.getVar("PATH")
369 output = subprocess.check_output("%s --version" % compiler, shell=True, env=env).decode("utf-8") 369 output = subprocess.check_output("%s --version" % compiler, \
370 shell=True, env=env, stderr=subprocess.STDOUT).decode("utf-8")
370 except subprocess.CalledProcessError as e: 371 except subprocess.CalledProcessError as e:
371 bb.fatal("Error running %s --version: %s" % (compiler, e.output.decode("utf-8"))) 372 bb.fatal("Error running %s --version: %s" % (compiler, e.output.decode("utf-8")))
372 373