8000 bpo-41100: Stripping '-arch arm64' didn't work after all (GH-23280) · Ringdingcoder/cpython@442746a · GitHub
[go: up one dir, main page]

Skip to content

Commit 442746a

Browse files
bpo-41100: Stripping '-arch arm64' didn't work after all (pythonGH-23280)
1 parent 690a5fa commit 442746a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_osx_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _get_system_version_tuple():
128128
_SYSTEM_VERSION_TUPLE = ()
129129

130130
return _SYSTEM_VERSION_TUPLE
131-
131+
132132

133133
def _remove_original_values(_config_vars):
134134
"&qu 7080 ot;"Remove original unmodified values for testing"""
@@ -357,7 +357,7 @@ def compiler_fixup(compiler_so, cc_args):
357357

358358
elif not _supports_arm64_builds():
359359
# Look for "-arch arm64" and drop that
360-
for idx in range(len(compiler_so)):
360+
for idx in reversed(range(len(compiler_so))):
361361
if compiler_so[idx] == '-arch' and compiler_so[idx+1] == "arm64":
362362
del compiler_so[idx:idx+2]
363363

0 commit comments

Comments
 (0)
0