Skip to content

Commit 030c054

Browse files
committed
Enable the tail call interpreter on 3.14+
1 parent 89c9068 commit 030c054

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,12 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
353353
fi
354354
fi
355355

356+
# On Python 3.14+, enable the tail calling interpreter which is more performant.
357+
# https://docs.python.org/3.14/using/configure.html#cmdoption-with-tail-call-interp
358+
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
359+
EXTRA_CONFIGURE_FLAGS="${EXTRA_CONFIGURE_FLAGS} --with-tail-call-interp"
360+
fi
361+
356362
# On Python 3.12+ we need to link the special hacl library provided some SHA-256
357363
# implementations. Since we hack up the regular extension building mechanism, we
358364
# need to reinvent this wheel.

0 commit comments

Comments
 (0)