We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ab3596 commit aa430e2Copy full SHA for aa430e2
cpython-unix/build-cpython.sh
@@ -348,6 +348,13 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
348
fi
349
350
351
+# On Python 3.14+, enable the tail calling interpreter which is more performant.
352
+# This is only available on Clang 19+
353
+# https://docs.python.org/3.14/using/configure.html#cmdoption-with-tail-call-interp
354
+if [[ "${CC}" = "clang" && -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]]; then
355
+ EXTRA_CONFIGURE_FLAGS="${EXTRA_CONFIGURE_FLAGS} --with-tail-call-interp"
356
+fi
357
+
358
# On Python 3.12+ we need to link the special hacl library provided some SHA-256
359
# implementations. Since we hack up the regular extension building mechanism, we
360
# need to reinvent this wheel.
0 commit comments