diff --git a/Misc/NEWS.d/next/Build/2026-03-26-23-40-21.gh-issue-146475.F9KMLP.rst b/Misc/NEWS.d/next/Build/2026-03-26-23-40-21.gh-issue-146475.F9KMLP.rst new file mode 100644 index 00000000000000..da5734233be738 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-03-26-23-40-21.gh-issue-146475.F9KMLP.rst @@ -0,0 +1,2 @@ +Block Apple LLVM 21 from passing the JIT tool version check, as the JIT is +incompatible with it. diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py index 8b68c1e8636af7..cff3ceba0375cc 100644 --- a/Tools/jit/_llvm.py +++ b/Tools/jit/_llvm.py @@ -59,7 +59,7 @@ 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"(?