Skip to content

Commit

Permalink
Enable the tail call interpreter on 3.14+
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Feb 12, 2025
1 parent 82c07fd commit 51561a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
fi
fi

# On Python 3.14+, enable the tail calling interpreter which is more performant.
# https://docs.python.org/3.14/using/configure.html#cmdoption-with-tail-call-interp
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
EXTRA_CONFIGURE_FLAGS="${EXTRA_CONFIGURE_FLAGS} --with-tail-call-interp"
fi

# On Python 3.12+ we need to link the special hacl library provided some SHA-256
# implementations. Since we hack up the regular extension building mechanism, we
# need to reinvent this wheel.
Expand Down

0 comments on commit 51561a1

Please sign in to comment.