Author: Matti Picus <matti.pi...@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
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to