Lines Matching refs:_config_vars
113 def _remove_original_values(_config_vars):
116 for k in list(_config_vars):
118 del _config_vars[k]
120 def _save_modified_value(_config_vars, cv, newvalue):
123 oldvalue = _config_vars.get(cv, '')
124 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars):
125 _config_vars[_INITPRE + cv] = oldvalue
126 _config_vars[cv] = newvalue
144 def _find_appropriate_compiler(_config_vars):
162 return _config_vars
166 cc = oldcc = _config_vars['CC'].split()[0]
198 if cv in _config_vars and cv not in os.environ:
199 cv_split = _config_vars[cv].split()
201 _save_modified_value(_config_vars, cv, ' '.join(cv_split))
203 return _config_vars
206 def _remove_universal_flags(_config_vars):
211 if cv in _config_vars and cv not in os.environ:
212 flags = _config_vars[cv]
215 _save_modified_value(_config_vars, cv, flags)
217 return _config_vars
220 def _remove_unsupported_archs(_config_vars):
233 return _config_vars
235 if re.search('-arch\s+ppc', _config_vars['CFLAGS']) is not None:
239 _config_vars['CC'].replace("'", "'\"'\"'"),))
246 if cv in _config_vars and cv not in os.environ:
247 flags = _config_vars[cv]
249 _save_modified_value(_config_vars, cv, flags)
251 return _config_vars
254 def _override_all_archs(_config_vars):
262 if cv in _config_vars and '-arch' in _config_vars[cv]:
263 flags = _config_vars[cv]
266 _save_modified_value(_config_vars, cv, flags)
268 return _config_vars
271 def _check_for_unavailable_sdk(_config_vars):
283 cflags = _config_vars.get('CFLAGS', '')
290 if cv in _config_vars and cv not in os.environ:
291 flags = _config_vars[cv]
293 _save_modified_value(_config_vars, cv, flags)
295 return _config_vars
362 def customize_config_vars(_config_vars):
392 _remove_universal_flags(_config_vars)
395 _override_all_archs(_config_vars)
398 _check_for_unavailable_sdk(_config_vars)
400 return _config_vars
403 def customize_compiler(_config_vars):
412 _find_appropriate_compiler(_config_vars)
415 _remove_unsupported_archs(_config_vars)
418 _override_all_archs(_config_vars)
420 return _config_vars
423 def get_platform_osx(_config_vars, osname, release, machine):
433 _config_vars.get('MACOSX_DEPLOYMENT_TARGET', '')
445 cflags = _config_vars.get(_INITPRE+'CFLAGS',
446 _config_vars.get('CFLAGS', ''))