1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed fc9dc97

Fix for Macs, where platform.cc is e.g. "gcc-4.0".

  • Participants
  • Parent commits df6f7a5
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/sys/version.py

View file
 
 if platform.name == 'msvc':
     COMPILER_INFO = 'MSC v.%d 32 bit' % (platform.version * 10 + 600)
-elif platform.cc == 'gcc':
+elif platform.cc.startswith('gcc'):
     out = platform.execute(platform.cc, '--version').out
     match = re.search(' (\d+\.\d+(\.\d+)*)', out)
     if match: