aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-12-03 14:49:20 +0100
committerThibault Saunier <tsaunier@gnome.org>2015-12-04 10:17:49 +0100
commitb15aa49af2c30921368cf6bf330919da476762eb (patch)
treec9d7e6f3011a34aa8bc370969d7344adb046079e /compilers.py
parent33b2a414e9f985da6e2149f4bab4512f00b400d0 (diff)
downloadmeson-b15aa49af2c30921368cf6bf330919da476762eb.zip
meson-b15aa49af2c30921368cf6bf330919da476762eb.tar.gz
meson-b15aa49af2c30921368cf6bf330919da476762eb.tar.bz2
Handle the case where we can not execute a file the tempdir
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py
index b205cd5..7907235 100644
--- a/compilers.py
+++ b/compilers.py
@@ -406,7 +406,12 @@ int someSymbolHereJustForFun;
cmdlist = self.exe_wrapper + [exename]
else:
cmdlist = exename
- pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ try:
+ pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ except Exception as e:
+ mlog.debug('Could not run: %s (error: %s)\n' % (cmdlist, e))
+ return RunResult(False)
+
(so, se) = pe.communicate()
so = so.decode()
se = se.decode()