https://github.com/python/cpython/commit/c0e064003954142b4ba820dfe149f893227c4f11
commit: c0e064003954142b4ba820dfe149f893227c4f11
branch: main
author: Savannah Ostrowski <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-04-30T22:09:36Z
summary:
GH-146475: Block Apple Clang for building JIT stencils (#149188)
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 601752bf1f6396..96cf5fc4714737 100644
--- a/Tools/jit/_llvm.py
+++ b/Tools/jit/_llvm.py
@@ -69,7 +69,9 @@ async def _check_tool_version(
name: str, llvm_version: str, *, echo: bool = False
) -> bool:
output = await _run(name, ["--version"], echo=echo)
- _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+"
+ )
return bool(output and _llvm_version_pattern.search(output))
_______________________________________________
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]