Skip to content

Commit 8f706cf

Browse files
committed
gh-155375: pin libcompiler-rt to the active compiler version, bump to
clang 22 `libcompiler-rt` was previously unpinned, so the solver could pick a runtime whose major version doesn't match the clang used to build the interpreter and extension modules, causing an ASan runtime/build mismatch. Pin it to the active `c_compiler_version`. Also, move the ASan toolchain default from clang 21 to clang 22, due to #145199.
1 parent b93c74e commit 8f706cf

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎Tools/pixi-packages/recipe.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ context:
22
freethreading_tag: ${{ "t" if "freethreading" in variant else "" }}
33
abi_prefix: ${{ (variant | split("_"))[0] + "_" if "san" in variant else "" }}
44
abi_tag: ${{ abi_prefix }}cp${{ (version | split('.'))[:2] | join('') }}${{ freethreading_tag }}
5+
c_compiler_version: ${{ c_compiler_version }}
56

67
recipe:
78
name: python
@@ -74,7 +75,7 @@ outputs:
7475
- expat
7576
- if: '"san" in variant'
7677
then:
77-
- libcompiler-rt
78+
- libcompiler-rt ${{ c_compiler_version }}.*
7879

7980
ignore_run_exports:
8081
from_package:
@@ -87,6 +88,9 @@ outputs:
8788
weak:
8889
- python_abi ${{ version }}.* *_${{ abi_tag }}
8990

91+
run_constraints:
92+
- libcompiler-rt ${{ c_compiler_version }}.*
93+
9094
about:
9195
homepage: https://www.python.org/
9296
license: Python-2.0

‎Tools/pixi-packages/variants.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ openssl:
88
c_compiler:
99
- clang
1010
c_compiler_version:
11-
- 21
11+
- 22
1212
cxx_compiler:
1313
- clangxx
1414
cxx_compiler_version:
15-
- 21
15+
- 22

0 commit comments

Comments
 (0)