Tidy up and correct a few things

This commit is contained in:
Joe Rickerby
2021-01-30 10:52:00 +00:00
parent 4ff52ae8d0
commit 32ab09b2ed
4 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -259,9 +259,9 @@ def setup_python(python_configuration: PythonConfiguration,
# set ARCHFLAGS otherwise CPython sets it to `-arch x86_64`
env.setdefault('ARCHFLAGS', '-arch arm64 -arch x86_64')
if python_configuration.identifier.endswith('_arm64') or python_configuration.identifier.endswith('_universal2'):
if python_configuration.identifier.endswith('arm64') or python_configuration.identifier.endswith('universal2'):
if get_macos_version() < (10, 16):
# xcode 12 or higher can build arm64 on macos 10.15 or below, but
# xcode 12.2 or higher can build arm64 on macos 10.15 or below, but
# needs the correct SDK selected
# however, different versions of Xcode contain different SDK