Skip to content

Commit c0e0640

Browse files
GH-146475: Block Apple Clang for building JIT stencils (#149188)
1 parent bdbb55c commit c0e0640

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Block Apple Clang from being used to build the JIT as it ships without
2+
required LLVM tools.

Tools/jit/_llvm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ async def _check_tool_version(
6969
name: str, llvm_version: str, *, echo: bool = False
7070
) -> bool:
7171
output = await _run(name, ["--version"], echo=echo)
72-
_llvm_version_pattern = re.compile(rf"version\s+{llvm_version}\.\d+\.\d+\S*\s+")
72+
_llvm_version_pattern = re.compile(
73+
rf"(?<!Apple )(LLVM|clang) version\s+{llvm_version}\.\d+\.\d+\S*\s+"
74+
)
7375
return bool(output and _llvm_version_pattern.search(output))
7476

7577

0 commit comments

Comments
 (0)