Skip to content

Commit 1f3cccd

Browse files
committed
Gate to clang builds
1 parent 2ec1e3c commit 1f3cccd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpython-unix/build-cpython.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,9 @@ if [ "${PYBUILD_PLATFORM}" != "macos" ]; then
349349
fi
350350

351351
# On Python 3.14+, enable the tail calling interpreter which is more performant.
352+
# This is only available on Clang 19+
352353
# 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+
if [[ "${CC}" = "clang" && -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]]; then
354355
EXTRA_CONFIGURE_FLAGS="${EXTRA_CONFIGURE_FLAGS} --with-tail-call-interp"
355356
fi
356357

0 commit comments

Comments
 (0)