Skip to content

Commit

Permalink
Gate to clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Feb 12, 2025
1 parent 2ec1e3c commit 1f3cccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
fi

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

Expand Down

0 comments on commit 1f3cccd

Please sign in to comment.