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