From: Savannah Ostrowski Date: Mon, 4 May 2026 00:30:24 +0000 (-0700) Subject: [3.14] GH-146475: Block Apple Clang for building JIT stencils (#149188) (#149339) X-Git-Tag: v3.14.5rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c55cce2e5f2f30fa54c616395360ac2e1f9d5d5f;p=thirdparty%2FPython%2Fcpython.git [3.14] GH-146475: Block Apple Clang for building JIT stencils (#149188) (#149339) GH-146475: Block Apple Clang for building JIT stencils (#149188) (cherry picked from commit c0e064003954142b4ba820dfe149f893227c4f11) --- diff --git a/Misc/NEWS.d/next/Build/2026-04-30-08-43-47.gh-issue-146475.1cL4hX.rst b/Misc/NEWS.d/next/Build/2026-04-30-08-43-47.gh-issue-146475.1cL4hX.rst new file mode 100644 index 000000000000..225c659393fa --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-04-30-08-43-47.gh-issue-146475.1cL4hX.rst @@ -0,0 +1,2 @@ +Block Apple Clang from being used to build the JIT as it ships without +required LLVM tools. diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py index f09a8404871b..79b6b7ec5300 100644 --- a/Tools/jit/_llvm.py +++ b/Tools/jit/_llvm.py @@ -11,7 +11,9 @@ import typing import _targets _LLVM_VERSION = 19 -_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+") +_LLVM_VERSION_PATTERN = re.compile( + rf"(?