mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-129964: Fix JIT crash on Windows on Arm (GH-130882)
This commit is contained in:
parent
5d8db36bbb
commit
02de9cb9a8
2 changed files with 2 additions and 1 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix JIT crash on Windows on Arm. Patch by Diego Russo and Brandt Bucher.
|
|
@ -499,7 +499,7 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
|
||||||
if re.fullmatch(r"aarch64-apple-darwin.*", host):
|
if re.fullmatch(r"aarch64-apple-darwin.*", host):
|
||||||
target = _MachO(host, alignment=8, prefix="_")
|
target = _MachO(host, alignment=8, prefix="_")
|
||||||
elif re.fullmatch(r"aarch64-pc-windows-msvc", host):
|
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)
|
target = _COFF(host, alignment=8, args=args)
|
||||||
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
|
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
|
||||||
args = [
|
args = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue