Author: mattip
Branch: win64-stage1
Changeset: r53850:5e93d0d1d2c2
Date: 2012-03-21 10:54 +0200
http://bitbucket.org/pypy/pypy/changeset/5e93d0d1d2c2/

Log:    better error message, fix for mingw

diff --git a/pypy/rlib/rwin32.py b/pypy/rlib/rwin32.py
--- a/pypy/rlib/rwin32.py
+++ b/pypy/rlib/rwin32.py
@@ -141,6 +141,10 @@
         cfile = udir.join('dosmaperr.c')
         cfile.write(r'''
                 #include <errno.h>
+                #include  <stdio.h>
+                #ifdef __GNUC__
+                #define _dosmaperr mingw_dosmaperr
+                #endif
                 int main()
                 {
                     int i;
diff --git a/pypy/translator/platform/windows.py 
b/pypy/translator/platform/windows.py
--- a/pypy/translator/platform/windows.py
+++ b/pypy/translator/platform/windows.py
@@ -18,8 +18,8 @@
     try:
         subprocess.check_output([cc, '--version'])
     except:
-        log.error("Unknown cc option '%s'"%cc)
-        return None
+        raise ValueError,"Could not find compiler specified by cc option" + \
+                " '%s', it must be a valid exe file on your path"%cc
     return MingwPlatform(cc)
 
 def Windows(cc=None):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to