https://github.com/python/cpython/commit/d82d5c2ddbc73fc188812a3d16b9ab2d15c76a01
commit: d82d5c2ddbc73fc188812a3d16b9ab2d15c76a01
branch: 3.13
author: Savannah Ostrowski <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-05-04T00:29:26Z
summary:

[3.13] GH-146475: Block Apple Clang for building JIT stencils (#149188) 
(#149340)

GH-146475: Block Apple Clang for building JIT stencils (#149188)

(cherry picked from commit c0e064003954142b4ba820dfe149f893227c4f11)

files:
A Misc/NEWS.d/next/Build/2026-04-30-08-43-47.gh-issue-146475.1cL4hX.rst
M Tools/jit/_llvm.py

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 00000000000000..225c659393fac5
--- /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 606f280a14d974..b68da1b6be1007 100644
--- a/Tools/jit/_llvm.py
+++ b/Tools/jit/_llvm.py
@@ -9,7 +9,9 @@
 import typing
 
 _LLVM_VERSION = 18
-_LLVM_VERSION_PATTERN = 
re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
+_LLVM_VERSION_PATTERN = re.compile(
+    rf"(?<!Apple )(LLVM|clang) version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+"
+)
 
 _P = typing.ParamSpec("_P")
 _R = typing.TypeVar("_R")

_______________________________________________
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