MCPcopy Index your code
hub / github.com/python/cpython / _supports_universal_builds

Function _supports_universal_builds

Lib/_osx_support.py:179–187  ·  view source on GitHub ↗

Returns True if universal builds are supported on this system

()

Source from the content-addressed store, hash-verified

177 return _cache_default_sysroot
178
179def _supports_universal_builds():
180 """Returns True if universal builds are supported on this system"""
181 # As an approximation, we assume that if we are running on 10.4 or above,
182 # then we are running with an Xcode environment that supports universal
183 # builds, in particular -isysroot and -arch arguments to the compiler. This
184 # is in support of allowing 10.4 universal builds to run on 10.3.x systems.
185
186 osx_version = _get_system_version_tuple()
187 return bool(osx_version >= (10, 4)) if osx_version else False
188
189def _supports_arm64_builds():
190 """Returns True if arm64 builds are supported on this system"""

Callers 2

compiler_fixupFunction · 0.85
customize_config_varsFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…