[pypy-commit] pypy default: error out if vcvars.bat fails
mattip
pypy.commits at gmail.com
Sun Nov 11 04:05:16 EST 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r95293:dbfbfcf077e9
Date: 2018-11-04 22:54 -0500
http://bitbucket.org/pypy/pypy/changeset/dbfbfcf077e9/
Log: error out if vcvars.bat fails
diff --git a/rpython/translator/platform/windows.py b/rpython/translator/platform/windows.py
--- a/rpython/translator/platform/windows.py
+++ b/rpython/translator/platform/windows.py
@@ -88,6 +88,9 @@
stdout, stderr = popen.communicate()
if popen.wait() != 0:
return None
+ if stdout[:5].lower() == 'error':
+ log.msg('Running "%s" errored: %s' %(vcvars, stdout.split()[0]))
+ return None
except:
return None
More information about the pypy-commit
mailing list