summaryrefslogtreecommitdiffstats
path: root/Lib/_osx_support.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2020-11-22 02:17:18 (GMT)
committerGitHub <noreply@github.com>2020-11-22 02:17:18 (GMT)
commit442746af649cc2c20d690acfabf44ab0e06c36b4 (patch)
tree2ef17e7523c4af2c7f248a18396d4f4b751b42e6 /Lib/_osx_support.py
parent690a5fa3ddc675a434730b057ddb5c33f44fd0b7 (diff)
downloadcpython-442746af649cc2c20d690acfabf44ab0e06c36b4.zip
cpython-442746af649cc2c20d690acfabf44ab0e06c36b4.tar.gz
cpython-442746af649cc2c20d690acfabf44ab0e06c36b4.tar.bz2
bpo-41100: Stripping '-arch arm64' didn't work after all (GH-23280)
Diffstat (limited to 'Lib/_osx_support.py')
-rw-r--r--Lib/_osx_support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index 8a696ee..0cbfeed 100644
--- a/Lib/_osx_support.py
+++ b/Lib/_osx_support.py
@@ -128,7 +128,7 @@ def _get_system_version_tuple():
_SYSTEM_VERSION_TUPLE = ()
return _SYSTEM_VERSION_TUPLE
-
+
def _remove_original_values(_config_vars):
"""Remove original unmodified values for testing"""
@@ -357,7 +357,7 @@ def compiler_fixup(compiler_so, cc_args):
elif not _supports_arm64_builds():
# Look for "-arch arm64" and drop that
- for idx in range(len(compiler_so)):
+ for idx in reversed(range(len(compiler_so))):
if compiler_so[idx] == '-arch' and compiler_so[idx+1] == "arm64":
del compiler_so[idx:idx+2]