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

Function _override_all_archs

Lib/_osx_support.py:314–328  ·  view source on GitHub ↗

Allow override of all archs with ARCHFLAGS env var

(_config_vars)

Source from the content-addressed store, hash-verified

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