https://github.com/python/cpython/commit/285f42c850da0d8ca31850088eb7b9247cbbbc71
commit: 285f42c850da0d8ca31850088eb7b9247cbbbc71
branch: main
author: Xarblu <[email protected]>
committer: brandtbucher <[email protected]>
date: 2024-06-19T17:48:00-07:00
summary:
GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120604)
files:
A Misc/NEWS.d/next/Build/2024-06-19-21-05-15.gh-issue-120602.UyDARz.rst
M Tools/jit/_llvm.py
diff --git
a/Misc/NEWS.d/next/Build/2024-06-19-21-05-15.gh-issue-120602.UyDARz.rst
b/Misc/NEWS.d/next/Build/2024-06-19-21-05-15.gh-issue-120602.UyDARz.rst
new file mode 100644
index 00000000000000..f0d90ec3bb5089
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2024-06-19-21-05-15.gh-issue-120602.UyDARz.rst
@@ -0,0 +1,2 @@
+Correctly handle LLVM installs with ``LLVM_VERSION_SUFFIX`` when building
+with ``--enable-experimental-jit``.
diff --git a/Tools/jit/_llvm.py b/Tools/jit/_llvm.py
index 45bd69ff861b56..606f280a14d974 100644
--- a/Tools/jit/_llvm.py
+++ b/Tools/jit/_llvm.py
@@ -9,7 +9,7 @@
import typing
_LLVM_VERSION = 18
-_LLVM_VERSION_PATTERN = re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\s+")
+_LLVM_VERSION_PATTERN =
re.compile(rf"version\s+{_LLVM_VERSION}\.\d+\.\d+\S*\s+")
_P = typing.ParamSpec("_P")
_R = typing.TypeVar("_R")
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]