| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 return 'solaris' | 74 return 'solaris' |
| 75 elif system == 'NetBSD': | 75 elif system == 'NetBSD': |
| 76 return 'netbsd' | 76 return 'netbsd' |
| 77 else: | 77 else: |
| 78 return None | 78 return None |
| 79 | 79 |
| 80 | 80 |
| 81 def UseSimulator(arch): | 81 def UseSimulator(arch): |
| 82 machine = platform.machine() | 82 machine = platform.machine() |
| 83 return (machine and | 83 return (machine and |
| 84 (arch == "mipsel" or arch == "arm") and | 84 (arch == "mipsel" or arch == "arm" or arch == "a64") and |
| 85 not arch.startswith(machine)) | 85 not arch.startswith(machine)) |
| 86 | 86 |
| 87 | 87 |
| 88 # This will default to building the 32 bit VM even on machines that are | 88 # This will default to building the 32 bit VM even on machines that are |
| 89 # capable of running the 64 bit VM. | 89 # capable of running the 64 bit VM. |
| 90 def DefaultArch(): | 90 def DefaultArch(): |
| 91 machine = platform.machine() | 91 machine = platform.machine() |
| 92 machine = machine.lower() # Windows 7 capitalizes 'AMD64'. | 92 machine = machine.lower() # Windows 7 capitalizes 'AMD64'. |
| 93 if machine.startswith('arm'): | 93 if machine.startswith('arm'): |
| 94 return 'arm' | 94 return 'arm' |
| (...skipping 11 matching lines...) Expand all Loading... |
| 106 | 106 |
| 107 def GuessWordsize(): | 107 def GuessWordsize(): |
| 108 if '64' in platform.machine(): | 108 if '64' in platform.machine(): |
| 109 return '64' | 109 return '64' |
| 110 else: | 110 else: |
| 111 return '32' | 111 return '32' |
| 112 | 112 |
| 113 | 113 |
| 114 def IsWindows(): | 114 def IsWindows(): |
| 115 return GuessOS() == 'windows' | 115 return GuessOS() == 'windows' |
| OLD | NEW |