Mercurial > hg > truffle
comparison mx/commands.py @ 11784:a2958b7bf83f
add "sun4u" as a valid identifier for the SPARC architecture
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 25 Sep 2013 12:17:55 +0200 |
parents | f3e5cbd1efae |
children | 65dbed1fdf46 |
comparison
equal
deleted
inserted
replaced
11783:9c98944c040b | 11784:a2958b7bf83f |
---|---|
241 | 241 |
242 def _arch(): | 242 def _arch(): |
243 machine = platform.uname()[4] | 243 machine = platform.uname()[4] |
244 if machine in ['amd64', 'AMD64', 'x86_64', 'i86pc']: | 244 if machine in ['amd64', 'AMD64', 'x86_64', 'i86pc']: |
245 return 'amd64' | 245 return 'amd64' |
246 if machine in ['sun4v']: | 246 if machine in ['sun4v', 'sun4u']: |
247 return 'sparc' | 247 return 'sparc' |
248 if machine == 'i386' and mx.get_os() == 'darwin': | 248 if machine == 'i386' and mx.get_os() == 'darwin': |
249 try: | 249 try: |
250 # Support for Snow Leopard and earlier version of MacOSX | 250 # Support for Snow Leopard and earlier version of MacOSX |
251 if subprocess.check_output(['sysctl', '-n', 'hw.cpu64bit_capable']).strip() == '1': | 251 if subprocess.check_output(['sysctl', '-n', 'hw.cpu64bit_capable']).strip() == '1': |