Skip to content

Commit 36d7f30

Browse files
pythonGH-146475: Block Apple Clang for building JIT stencils (python#149188)
(cherry picked from commit c0e0640)
1 parent 46165b1 commit 36d7f30

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
@@ -9,7 +9,9 @@
99
import typing
1010

1111
_LLVM_VERSION = 18
12-
_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
12+
_LLVM_VERSION_PATTERN = re.compile(
13+
rf"(?<!Apple )(LLVM|clang) version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+"
14+
)
1315

1416
_P = typing.ParamSpec("_P")
1517
_R = typing.TypeVar("_R")

0 commit comments

Comments
 (0)