bpo-41100: Stripping '-arch arm64' didn't work after all (GH-23280)
This commit is contained in:
parent
690a5fa3dd
commit
442746af64
@ -357,7 +357,7 @@ def compiler_fixup(compiler_so, cc_args):
|
|||||||
|
|
||||||
elif not _supports_arm64_builds():
|
elif not _supports_arm64_builds():
|
||||||
# Look for "-arch arm64" and drop that
|
# 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":
|
if compiler_so[idx] == '-arch' and compiler_so[idx+1] == "arm64":
|
||||||
del compiler_so[idx:idx+2]
|
del compiler_so[idx:idx+2]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user