forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
From msys2/MINGW-packages#20569
cmake attempts to verify that python is targeting arm with the following:
execute_process (COMMAND ${launcher} "${_${_PYTHON_PREFIX}_EXECUTABLE}" -c
"import sys, sysconfig; sys.stdout.write(sysconfig.get_platform())"
RESULT_VARIABLE result
OUTPUT_VARIABLE platform
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(TOUPPER "${platform}" platform)
if (result OR ((target_arm AND NOT platform MATCHES "ARM") OR
(NOT target_arm AND platform MATCHES "ARM")))
# interpreter not usable or has wrong architectureIn the case of this fork, sysconfig.get_platform() returns mingw_aarch64, not mingw_arm64 or something similar. I'm not sure whether this should be patched here (probably as part of the 3.12 update), or in cmake (to check for MATCHES "ARM|AARCH" instead) but I wanted to open an issue for it here so it wouldn't be forgotten for 3.12
Metadata
Metadata
Assignees
Labels
No labels