MCPcopy Create free account
hub / github.com/python/cpython / is_cygwingcc

Function is_cygwingcc

Tools/c-analyzer/distutils/cygwinccompiler.py:282–285  ·  view source on GitHub ↗

Try to determine if the gcc that would be used is from cygwin.

()

Source from the content-addressed store, hash-verified

280 return tuple([_find_exe_version(cmd) for cmd in commands])
281
282def is_cygwingcc():
283 '''Try to determine if the gcc that would be used is from cygwin.'''
284 out_string = check_output(['gcc', '-dumpmachine'])
285 return out_string.strip().endswith(b'cygwin')

Callers 1

__init__Method · 0.85

Calls 3

check_outputFunction · 0.90
endswithMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…