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

Function _override_all_archs

Lib/_osx_support.py:315–329  ·  view source on GitHub ↗

Allow override of all archs with ARCHFLAGS env var

(_config_vars)

Source from the content-addressed store, hash-verified

313
314
315def _override_all_archs(_config_vars):
316 """Allow override of all archs with ARCHFLAGS env var"""
317 # NOTE: This name was introduced by Apple in OSX 10.5 and
318 # is used by several scripting languages distributed with
319 # that OS release.
320 if 'ARCHFLAGS' in os.environ:
321 arch = os.environ['ARCHFLAGS']
322 for cv in _UNIVERSAL_CONFIG_VARS:
323 if cv in _config_vars and '-arch' in _config_vars[cv]:
324 flags = _config_vars[cv]
325 flags = re.sub(r'-arch\s+\w+\s', ' ', flags)
326 flags = flags + ' ' + arch
327 _save_modified_value(_config_vars, cv, flags)
328
329 return _config_vars
330
331
332def _check_for_unavailable_sdk(_config_vars):

Callers 2

customize_config_varsFunction · 0.85
customize_compilerFunction · 0.85

Calls 2

_save_modified_valueFunction · 0.85
subMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…