https://github.com/python/cpython/commit/6737333ac5777345d058271621ccb3c2d11dc81e
commit: 6737333ac5777345d058271621ccb3c2d11dc81e
branch: main
author: Savannah Ostrowski <[email protected]>
committer: vstinner <[email protected]>
date: 2024-10-02T11:40:59+02:00
summary:

GH-124820: Move `-mno-outline-atomics` flag to aarch64 Linux JIT builds only 
(#124821)

files:
M Tools/jit/_targets.py

diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py
index 6c7b48f1f37865..b6c0e79e72fb3e 100644
--- a/Tools/jit/_targets.py
+++ b/Tools/jit/_targets.py
@@ -139,9 +139,6 @@ async def _compile(
             "-fno-plt",
             # Don't call stack-smashing canaries that we can't find or patch:
             "-fno-stack-protector",
-            # On aarch64 Linux, intrinsics were being emitted and this flag
-            # was required to disable them.
-            "-mno-outline-atomics",
             "-std=c11",
             *self.args,
         ]
@@ -527,7 +524,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"]

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to