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

Function detect_os_name

deps/libffi/generate-headers.py:207–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206
207def detect_os_name():
208 if sys.platform.startswith('win'):
209 return 'win'
210 if sys.platform == 'darwin':
211 return 'mac'
212 if sys.platform.startswith('linux'):
213 return 'linux'
214 if sys.platform.startswith('freebsd'):
215 return 'freebsd'
216 raise ValueError(f'Unsupported host platform {sys.platform!r}')
217
218
219def detect_target_arch():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…