Skip to content

Commit

Permalink
pythonGH-124820: Move -mno-outline-atomics flag to aarch64 Linux JI…
Browse files Browse the repository at this point in the history
…T builds only (pythonGH-124821)

(cherry picked from commit 6737333)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
  • Loading branch information
savannahostrowski authored and miss-islington committed Oct 2, 2024
1 parent e6fb7fa commit 90cdc2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tools/jit/_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,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"]
Expand Down

0 comments on commit 90cdc2c

Please sign in to comment.