Skip to content

Commit 2ec1e3c

Browse files
committed
Enable the tail call interpreter on 3.14+
1 parent e39257a commit 2ec1e3c

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
@@ -348,6 +348,12 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
348348
fi
349349
fi
350350

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

0 commit comments

Comments
 (0)