Skip to content

Commit 85af95a

Browse files
committed
Set enable-experimental-jit=yes-off on Python 3.13+
1 parent aa430e2 commit 85af95a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
424424
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_12}" && -n "${BOLT_CAPABLE}" ]]; then
425425
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-bolt"
426426
fi
427+
428+
# Allow users to enable the experimental JIT on 3.13+
429+
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]]; then
430+
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-experimental-jit=yes-off"
431+
fi
427432
fi
428433

429434
if [ -n "${CPYTHON_LTO}" ]; then

0 commit comments

Comments
 (0)