aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-04 11:56:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-04 11:56:02 +0200
commit66ff4a0e9134b7c7c646092c77351268bd121dbe (patch)
treec9d7e6f3011a34aa8bc370969d7344adb046079e /compilers.py
parent33558cd9799d7e1d056ccd5946c8cb575c760ffd (diff)
parentb15aa49af2c30921368cf6bf330919da476762eb (diff)
downloadmeson-66ff4a0e9134b7c7c646092c77351268bd121dbe.zip
meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.gz
meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.bz2
Merge Python 3.3 fix.
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()