Skip to content

Commit f29015e

Browse files
committed
gh-146475: Block Apple LLVM 21 from passing JIT tool version check
1 parent 6450b1d commit f29015e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/jit/_llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async def _check_tool_version(
5959
name: str, llvm_version: str, *, echo: bool = False
6060
) -> bool:
6161
output = await _run(name, ["--version"], echo=echo)
62-
_llvm_version_pattern = re.compile(rf"version\s+{llvm_version}\.\d+\.\d+\S*\s+")
62+
_llvm_version_pattern = re.compile(rf"(?<!Apple )LLVM version\s+{llvm_version}\.\d+\.\d+\S*\s+")
6363
return bool(output and _llvm_version_pattern.search(output))
6464

6565

0 commit comments

Comments
 (0)