Skip to content

Commit c55cce2

Browse files
[3.14] GH-146475: Block Apple Clang for building JIT stencils (#149188) (#149339)
GH-146475: Block Apple Clang for building JIT stencils (#149188) (cherry picked from commit c0e0640)
1 parent 6297185 commit c55cce2

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
@@ -11,7 +11,9 @@
1111
import _targets
1212

1313
_LLVM_VERSION = 19
14-
_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
14+
_LLVM_VERSION_PATTERN = re.compile(
15+
rf"(?<!Apple )(LLVM|clang) version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+"
16+
)
1517
_EXTERNALS_LLVM_TAG = "llvm-19.1.7.0"
1618

1719
_P = typing.ParamSpec("_P")

0 commit comments

Comments
 (0)