Skip to content

Commit e9e25ef

Browse files
committed
Apply generational GC patches for CPython 3.14 and 3.15
1 parent 7af98d6 commit e9e25ef

3 files changed

Lines changed: 7996 additions & 0 deletions

File tree

cpython-unix/build-cpython.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,15 @@ if [ "${PYTHON_MAJMIN_VERSION}" = 3.14 ]; then
339339
patch -p1 -i "${ROOT}/patch-python-3.14-asyncio-static.patch"
340340
fi
341341

342+
# Use generational GC on the 3.14 and 3.15 release lines without
343+
# keeping the incremental-GC opt-in path.
344+
if [ "${PYTHON_MAJMIN_VERSION}" = 3.14 ]; then
345+
patch -p1 -i "${ROOT}/patch-gc-generational-3.14.patch"
346+
fi
347+
if [ "${PYTHON_MAJMIN_VERSION}" = 3.15 ]; then
348+
patch -p1 -i "${ROOT}/patch-gc-generational-3.15.patch"
349+
fi
350+
342351
# Ensure the new build-details.json file reports relocatable paths.
343352
# There is not yet a flag in ./configure for this, sadly.
344353
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then

0 commit comments

Comments
 (0)