[3.13] gh-130834: Fix free-threaded build with JIT for aarch64 linux (#132368)

* [3.13] gh-130834: Fix free-threaded build with JIT for arm

* lint
This commit is contained in:
Donghee Na 2025-04-11 06:52:46 -07:00 committed by GitHub
parent 88c1ca9eba
commit 793293dcb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -525,7 +525,12 @@ def get_target(host: str) -> _COFF | _ELF | _MachO:
args = ["-fms-runtime-lib=dll"]
target = _COFF(host, alignment=8, args=args)
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
args = ["-fpic"]
args = [
"-fpic",
# On aarch64 Linux, intrinsics were being emitted and this flag
# was required to disable them.
"-mno-outline-atomics",
]
target = _ELF(host, alignment=8, args=args)
elif re.fullmatch(r"i686-pc-windows-msvc", host):
args = ["-DPy_NO_ENABLE_SHARED"]