gh-129964: Fix JIT crash on Windows on Arm (GH-130882)

This commit is contained in:
Diego Russo 2025-03-05 20:40:50 +00:00 committed by GitHub
parent 5d8db36bbb
commit 02de9cb9a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Fix JIT crash on Windows on Arm. Patch by Diego Russo and Brandt Bucher.

View 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 = [