5"""Outputs host CPU architecture in format recognized by gyp."""
13 """Returns the host architecture with a predictable string."""
14 host_arch = platform.machine()
17 if re.match(
r'i.86', host_arch)
or host_arch ==
'i86pc':
19 elif host_arch
in [
'x86_64',
'amd64']:
21 elif host_arch.startswith(
'arm'):
23 elif host_arch.startswith(
'aarch64'):
25 elif host_arch.startswith(
'mips'):
27 elif host_arch.startswith(
'ppc'):
29 elif host_arch.startswith(
's390'):
36 if host_arch ==
'x64' and platform.architecture()[0] ==
'32bit':
38 if host_arch ==
'arm64' and platform.architecture()[0] ==
'32bit':
45 """Hook to be called from gyp without starting a separate python
50if __name__ ==
'__main__':
def print(*args, **kwargs)