Mercurial > hg > truffle
comparison mx/commands.py @ 9934:0f7ca53be929
CR-806: Changes to build Graal for SPARC
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Fri, 07 Jun 2013 15:43:00 -0400 |
parents | 6fa4b4933892 |
children | e2068bbf4c0d |
comparison
equal
deleted
inserted
replaced
9933:78a1232be418 | 9934:0f7ca53be929 |
---|---|
230 | 230 |
231 def _arch(): | 231 def _arch(): |
232 machine = platform.uname()[4] | 232 machine = platform.uname()[4] |
233 if machine in ['amd64', 'AMD64', 'x86_64', 'i86pc']: | 233 if machine in ['amd64', 'AMD64', 'x86_64', 'i86pc']: |
234 return 'amd64' | 234 return 'amd64' |
235 if machine in ['sun4v']: | |
236 return 'sparc' | |
235 if machine == 'i386' and mx.get_os() == 'darwin': | 237 if machine == 'i386' and mx.get_os() == 'darwin': |
236 try: | 238 try: |
237 # Support for Snow Leopard and earlier version of MacOSX | 239 # Support for Snow Leopard and earlier version of MacOSX |
238 if subprocess.check_output(['sysctl', '-n', 'hw.cpu64bit_capable']).strip() == '1': | 240 if subprocess.check_output(['sysctl', '-n', 'hw.cpu64bit_capable']).strip() == '1': |
239 return 'amd64' | 241 return 'amd64' |