]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-130834: Fix free-threaded build with JIT for aarch64 linux (#132368)
authorDonghee Na <donghee.na@python.org>
Fri, 11 Apr 2025 13:52:46 +0000 (06:52 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 13:52:46 +0000 (06:52 -0700)
* [3.13] gh-130834: Fix free-threaded build with JIT for arm

* lint

Tools/jit/_targets.py

index 50b5d923a355ce8f1cbe61d95b666351fc93b1d0..fb30bdb774a33bebceff8f0a4de629f55937234e 100644 (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"]