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

Function _remove_universal_flags

Lib/_osx_support.py:261–272  ·  view source on GitHub ↗

Remove all universal build arguments from config vars

(_config_vars)

Source from the content-addressed store, hash-verified

259
260
261def _remove_universal_flags(_config_vars):
262 """Remove all universal build arguments from config vars"""
263
264 for cv in _UNIVERSAL_CONFIG_VARS:
265 # Do not alter a config var explicitly overridden by env var
266 if cv in _config_vars and cv not in os.environ:
267 flags = _config_vars[cv]
268 flags = re.sub(r'-arch\s+\w+\s', ' ', flags, flags=re.ASCII)
269 flags = re.sub(r'-isysroot\s*\S+', ' ', flags)
270 _save_modified_value(_config_vars, cv, flags)
271
272 return _config_vars
273
274
275def _remove_unsupported_archs(_config_vars):

Callers 1

customize_config_varsFunction · 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…