diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 09:05:07 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 09:05:07 (GMT) |
commit | d3950527e7b51129accad96a9890ab99224e918a (patch) | |
tree | 68f22dbb31e376bd19b05e9764ea92355454996c | |
parent | 8a1c2543ff43964fb26191caee531197b3b89245 (diff) | |
download | cpython-d3950527e7b51129accad96a9890ab99224e918a.zip cpython-d3950527e7b51129accad96a9890ab99224e918a.tar.gz cpython-d3950527e7b51129accad96a9890ab99224e918a.tar.bz2 |
Fix for issue 9164
-rw-r--r-- | Lib/sysconfig.py | 3 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 50c8133..28731df 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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] @@ -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' |