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

Function host_arch_win

configure.py:1730–1743  ·  view source on GitHub ↗

Host architecture check using environ vars (better way to do this?)

()

Source from the content-addressed store, hash-verified

1728
1729
1730def host_arch_win():
1731 """Host architecture check using environ vars (better way to do this?)"""
1732
1733 observed_arch = os.environ.get('PROCESSOR_ARCHITECTURE', 'AMD64')
1734 arch = os.environ.get('PROCESSOR_ARCHITEW6432', observed_arch)
1735
1736 matchup = {
1737 'AMD64' : 'x64',
1738 'arm' : 'arm',
1739 'mips' : 'mips',
1740 'ARM64' : 'arm64'
1741 }
1742
1743 return matchup.get(arch, 'x64')
1744
1745def set_configuration_variable(configs, name, release=None, debug=None):
1746 configs['Release']['variables'][name] = release

Callers 1

configure_nodeFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…