[pypy-commit] pypy default: Blindly fix an issue on not-explicitly-supported platforms.
arigo
noreply at buildbot.pypy.org
Thu Sep 1 18:31:10 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r46992:f1f9f3782931
Date: 2011-09-01 18:30 +0200
http://bitbucket.org/pypy/pypy/changeset/f1f9f3782931/
Log: Blindly fix an issue on not-explicitly-supported platforms.
diff --git a/pypy/module/sys/version.py b/pypy/module/sys/version.py
--- a/pypy/module/sys/version.py
+++ b/pypy/module/sys/version.py
@@ -14,7 +14,7 @@
if platform.name == 'msvc':
COMPILER_INFO = 'MSC v.%d 32 bit' % (platform.version * 10 + 600)
-elif platform.cc.startswith('gcc'):
+elif platform.cc is not None and platform.cc.startswith('gcc'):
out = platform.execute(platform.cc, '--version').out
match = re.search(' (\d+\.\d+(\.\d+)*)', out)
if match:
More information about the pypy-commit
mailing list