Skip to content

Commit 67442d2

Browse files
committed
gh-129964: Fix JIT crash on Windows on Arm
Updating to clang-19 change the code generation of the JIT stencils. This caused some addresses of symbols to be far away hence it was impossible to reach them out. Enabling the -fplt restores the behaviour that we had with clang-18.
1 parent 2905690 commit 67442d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/jit/_targets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
499499
if re.fullmatch(r"aarch64-apple-darwin.*", host):
500500
target = _MachO(host, alignment=8, prefix="_")
501501
elif re.fullmatch(r"aarch64-pc-windows-msvc", host):
502-
args = ["-fms-runtime-lib=dll"]
502+
args = ["-fms-runtime-lib=dll", "-fplt"]
503503
target = _COFF(host, alignment=8, args=args)
504504
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
505505
args = [

0 commit comments

Comments
 (0)