mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Select correct tool platform when building on Windows ARM64 natively (GH-28491)
This commit is contained in:
parent
16b5bc6896
commit
adc5d32f47
2 changed files with 9 additions and 4 deletions
|
@ -8,6 +8,7 @@ import hashlib
|
|||
import os
|
||||
import ntpath
|
||||
import posixpath
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
import textwrap
|
||||
|
@ -35,7 +36,10 @@ if sys.platform != "win32":
|
|||
sys.exit("ERROR: missing _freeze_module")
|
||||
else:
|
||||
def find_tool():
|
||||
for arch in ['amd64', 'win32']:
|
||||
archs = ['amd64', 'win32']
|
||||
if platform.machine() == "ARM64":
|
||||
archs.append('arm64')
|
||||
for arch in archs:
|
||||
for exe in ['_freeze_module.exe', '_freeze_module_d.exe']:
|
||||
tool = os.path.join(ROOT_DIR, 'PCbuild', arch, exe)
|
||||
if os.path.isfile(tool):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue