https://github.com/python/cpython/commit/02de9cb9a8fa5b0ae3947231b8c0677834aaee45 commit: 02de9cb9a8fa5b0ae3947231b8c0677834aaee45 branch: main author: Diego Russo <diego.ru...@arm.com> committer: brandtbucher <brandtbuc...@gmail.com> date: 2025-03-05T12:40:50-08:00 summary:
gh-129964: Fix JIT crash on Windows on Arm (GH-130882) files: A Misc/NEWS.d/next/Core_and_Builtins/2025-03-05-15-19-21.gh-issue-129964.jqu89w.rst M 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 index 00000000000000..7f2c6b280c648b --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2025-03-05-15-19-21.gh-issue-129964.jqu89w.rst @@ -0,0 +1 @@ +Fix JIT crash on Windows on Arm. Patch by Diego Russo and Brandt Bucher. diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py index 84fa1a6ed25a18..aa2b56abf446b1 100644 --- a/Tools/jit/_targets.py +++ b/Tools/jit/_targets.py @@ -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 = [ _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com