The previous change breaks the powerpc builds

The compiler detection often relies on functions named gcc_xxx_platform,
if powerpc is left, then all the functions must be added in all those
modules.
This commit is contained in:
Thomas Nagy 2011-12-03 21:44:38 +01:00
parent 469742d18a
commit 250a8c699c
1 changed files with 4 additions and 0 deletions

View File

@ -468,6 +468,10 @@ def unversioned_sys_platform():
elif s in ('SunOS', 'Solaris'):
return 'sunos'
else: s = s.lower()
# powerpc == darwin for our purposes
if s == 'powerpc':
return 'darwin'
if s == 'win32' or s.endswith('os2') and s != 'sunos2': return s
return re.split('\d+$', s)[0]