Fix for issue 9164

This commit is contained in:
Ronald Oussoren 2010-07-11 09:05:07 +00:00
parent 8a1c2543ff
commit d3950527e7
2 changed files with 3 additions and 2 deletions

View File

@ -660,8 +660,7 @@ def get_platform():
cflags = get_config_vars().get('CFLAGS')
archs = re.findall('-arch\s+(\S+)', cflags)
archs.sort()
archs = tuple(archs)
archs = tuple(sorted(set(archs)))
if len(archs) == 1:
machine = archs[0]

View File

@ -470,6 +470,8 @@ C-API
Library
-------
- Issue #9164: Ensure that sysconfig handles duplicate -arch flags in CFLAGS
- Issue #7646: The fnmatch pattern cache no longer grows without bound.
- Issue #9136: Fix 'dictionary changed size during iteration'