Fix T102577: make update issues with python x86_64 running on macOS Arm
Still default to arm64 libraries in that case.
This commit is contained in:
parent
a67b33acd0
commit
27f277d948
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #102577, Cannot build Blender on macOS on M1/arm64: 'Mac OSX requires pre-compiled libs'
|
@ -59,10 +59,11 @@ def svn_update(args: argparse.Namespace, release_version: Optional[str]) -> None
|
|||
|
||||
# Checkout precompiled libraries
|
||||
if sys.platform == 'darwin':
|
||||
if platform.machine() == 'x86_64':
|
||||
lib_platform = "darwin"
|
||||
elif platform.machine() == 'arm64':
|
||||
# Check platform.version to detect arm64 with x86_64 python binary.
|
||||
if platform.machine() == 'arm64' or ('ARM64' in platform.version()):
|
||||
lib_platform = "darwin_arm64"
|
||||
elif platform.machine() == 'x86_64':
|
||||
lib_platform = "darwin"
|
||||
else:
|
||||
lib_platform = None
|
||||
elif sys.platform == 'win32':
|
||||
|
|
Loading…
Reference in New Issue