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

Function on_windows

v2/util/utility.py:143–155  ·  view source on GitHub ↗

Returns true if running on windows, whether in cygwin or not.

()

Source from the content-addressed store, hash-verified

141 return bjam.variable("OSVER")
142
143def on_windows ():
144 """ Returns true if running on windows, whether in cygwin or not.
145 """
146 if bjam.variable("NT"):
147 return True
148
149 elif bjam.variable("UNIX"):
150
151 uname = bjam.variable("JAMUNAME")
152 if uname and uname[0].startswith("CYGWIN"):
153 return True
154
155 return False

Callers 3

gcc.pyFile · 0.90
check_tool_auxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected