canonicalize the "alpha" arch

This commit is contained in:
Mike Bonnet 2007-08-20 12:56:59 -04:00
parent 6025b08a20
commit f4858905f9

View file

@ -700,14 +700,16 @@ def canonArch(arch):
# have some other related arch-mangling functions. # have some other related arch-mangling functions.
if fnmatch(arch,'i?86') or arch == 'athlon': if fnmatch(arch,'i?86') or arch == 'athlon':
return 'i386' return 'i386'
elif arch == 'ia32e':
return 'x86_64'
elif fnmatch(arch,'ppc64*'): elif fnmatch(arch,'ppc64*'):
return 'ppc64' return 'ppc64'
elif fnmatch(arch,'sparc64*'): elif fnmatch(arch,'sparc64*'):
return 'sparc64' return 'sparc64'
elif fnmatch(arch,'sparc*'): elif fnmatch(arch,'sparc*'):
return 'sparc' return 'sparc'
elif arch == 'ia32e': elif fnmatch(arch, 'alpha*'):
return 'x86_64' return 'alpha'
else: else:
return arch return arch