MCPcopy Index your code
hub / github.com/RustPython/RustPython / _supports_universal_builds

Function _supports_universal_builds

Lib/_osx_support.py:178–186  ·  view source on GitHub ↗

Returns True if universal builds are supported on this system

()

Source from the content-addressed store, hash-verified

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