MCPcopy Create free account
hub / github.com/boostorg/build / default_host_os

Function default_host_os

v2/tools/builtin.py:93–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91# i.e. returns the running host-os.
92#
93def default_host_os():
94 host_os = os_name()
95 if host_os not in (x.upper() for x in __os_names):
96 if host_os == 'NT': host_os = 'windows'
97 elif host_os == 'AS400': host_os = 'unix'
98 elif host_os == 'MINGW': host_os = 'windows'
99 elif host_os == 'BSDI': host_os = 'bsd'
100 elif host_os == 'COHERENT': host_os = 'unix'
101 elif host_os == 'DRAGONFLYBSD': host_os = 'bsd'
102 elif host_os == 'IRIX': host_os = 'sgi'
103 elif host_os == 'MACOSX': host_os = 'darwin'
104 elif host_os == 'KFREEBSD': host_os = 'freebsd'
105 elif host_os == 'LINUX': host_os = 'linux'
106 else: host_os = 'unix'
107 return host_os.lower()
108
109def register_globals ():
110 """ Registers all features and variants declared by this module.

Callers 1

register_globalsFunction · 0.85

Calls 1

os_nameFunction · 0.85

Tested by

no test coverage detected