[pypy-commit] pypy default: fix test_compiler on osx buildbot

bdkearns noreply at buildbot.pypy.org
Mon Apr 28 22:53:58 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r71055:d86c4a65f830
Date: 2014-04-28 13:52 -0700
http://bitbucket.org/pypy/pypy/changeset/d86c4a65f830/

Log:	fix test_compiler on osx buildbot

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,8 @@
 
 if platform.name == 'msvc':
     COMPILER_INFO = 'MSC v.%d 32 bit' % (platform.version * 10 + 600)
-elif platform.cc is not None and platform.cc.startswith(('gcc', 'clang')):
+elif platform.cc is not None and \
+        os.path.basename(platform.cc).startswith(('gcc', 'clang')):
     from rpython.rtyper.tool import rffi_platform
     COMPILER_INFO = 'GCC ' + rffi_platform.getdefinedstring('__VERSION__', '')
 else:


More information about the pypy-commit mailing list