[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 c0e0640039)
This commit is contained in:
Savannah Ostrowski 2026-05-03 17:29:26 -07:00 committed by GitHub
parent 46165b116b
commit d82d5c2ddb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,2 @@
Block Apple Clang from being used to build the JIT as it ships without
required LLVM tools.

View file

@ -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")