Skip to content

Commit

Permalink
bpo-41100: Stripping '-arch arm64' didn't work after all (pythonGH-23280
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ronaldoussoren authored and adorilson committed Mar 11, 2021
1 parent c721486 commit 9828530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/_osx_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 9828530

Please sign in to comment.