MCPcopy Create free account
hub / github.com/nodejs/node / get_host_os

Function get_host_os

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

Map GYP OS names to configure host OS.

(os_name)

Source from the content-addressed store, hash-verified

7from pathlib import Path
8
9def get_host_os(os_name):
10 """Map GYP OS names to configure host OS."""
11 mapping = {
12 'linux': 'linux-gnu',
13 'mac': 'darwin',
14 'win': 'mingw',
15 'freebsd': 'freebsd',
16 }
17 return mapping.get(os_name, os_name)
18
19def get_host_arch(os_name, arch):
20 """Map GYP architecture to configure host architecture."""

Callers 1

get_host_archFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected