]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129964: Fix JIT crash on Windows on Arm (GH-130882)
authorDiego Russo <diego.russo@arm.com>
Wed, 5 Mar 2025 20:40:50 +0000 (20:40 +0000)
committerGitHub <noreply@github.com>
Wed, 5 Mar 2025 20:40:50 +0000 (12:40 -0800)
Misc/NEWS.d/next/Core_and_Builtins/2025-03-05-15-19-21.gh-issue-129964.jqu89w.rst [new file with mode: 0644]
Tools/jit/_targets.py

diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-03-05-15-19-21.gh-issue-129964.jqu89w.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-05-15-19-21.gh-issue-129964.jqu89w.rst
new file mode 100644 (file)
index 0000000..7f2c6b2
--- /dev/null
@@ -0,0 +1 @@
+Fix JIT crash on Windows on Arm. Patch by Diego Russo and Brandt Bucher.
index 84fa1a6ed25a18414239ca56917af9e6115567f0..aa2b56abf446b139d43508d3c5140d19ba8513a8 100644 (file)
@@ -499,7 +499,7 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
     if re.fullmatch(r"aarch64-apple-darwin.*", host):
         target = _MachO(host, alignment=8, prefix="_")
     elif re.fullmatch(r"aarch64-pc-windows-msvc", host):
-        args = ["-fms-runtime-lib=dll"]
+        args = ["-fms-runtime-lib=dll", "-fplt"]
         target = _COFF(host, alignment=8, args=args)
     elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
         args = [