MCPcopy Index your code
hub / github.com/nodejs/node / get_host_arch

Function get_host_arch

deps/libffi/generate-configure-headers.py:19–29  ·  view source on GitHub ↗

Map GYP architecture to configure host architecture.

(os_name, arch)

Source from the content-addressed store, hash-verified

17 return mapping.get(os_name, os_name)
18
19def get_host_arch(os_name, arch):
20 """Map GYP architecture to configure host architecture."""
21 arch_mapping = {
22 'x64': 'x86_64',
23 'x86': 'i686',
24 'arm': 'arm',
25 'arm64': 'aarch64',
26 }
27 arch_name = arch_mapping.get(arch, arch)
28 os_name_mapped = get_host_os(os_name)
29 return f"{arch_name}-pc-{os_name_mapped}"
30
31def run_command(cmd):
32 """Run a command and return success status."""

Callers 1

generate_headersFunction · 0.85

Calls 2

get_host_osFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected