Skip to content

Commit 114d0bd

Browse files
committed
[3.13] gh-130834: Fix free-threaded build with JIT for arm
1 parent 91ae330 commit 114d0bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tools/jit/_targets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,11 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
521521
args = ["-fms-runtime-lib=dll"]
522522
target = _COFF(host, alignment=8, args=args)
523523
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
524-
args = ["-fpic"]
524+
args = ["-fpic",
525+
# On aarch64 Linux, intrinsics were being emitted and this flag
526+
# was required to disable them.
527+
"-mno-outline-atomics",
528+
]
525529
target = _ELF(host, alignment=8, args=args)
526530
elif re.fullmatch(r"i686-pc-windows-msvc", host):
527531
args = ["-DPy_NO_ENABLE_SHARED"]

0 commit comments

Comments
 (0)