]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)
authorAdrian Vladu <avladu@cloudbasesolutions.com>
Thu, 4 Mar 2021 16:59:12 +0000 (18:59 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 16:59:12 +0000 (08:59 -0800)
commitcb7bc7640935f6b05e9d2acfe4b33d496e8f8666
tree6eb6c908f038e3e8a9d1070fdb0c7e7788b12658
parent40d1b831ecd1b5b6a4fce9a908a6e61b50b360a0
bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)

The following changes are required:

      * add a new platform win-arm64
      * replace the emulated compiler executable paths
      * bump the linker base addressed as ARM64 requires more memory
        this change might not be needed (investigation required)

    On Windows 10 ARM64, VS compiler paths look like this:
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\ARM64\cl.exe

    Note that the cl.exe for ARM64 is an x32 binary, which can run emulated
    on Windows 10 ARM64 (it has builtin emulation for x32).

    The rc.exe and mc.exe paths have to also be changed, as the initial
    discovery has to be fixed.

    Work in progress to remove the hardcoded bits and to change the path
    query fixes to the proper location.

Automerge-Triggered-By: GH:jaraco
Lib/distutils/msvc9compiler.py
Misc/NEWS.d/next/Windows/2020-11-23-10-14-03.bpo-42405.4vQUja.rst [new file with mode: 0644]