Skip to content

Commit bee3baa

Browse files
committed
Disable the JIT on free-threaded builds
1 parent 4a5724d commit bee3baa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpython-unix/build-cpython.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ if [ -n "${CPYTHON_OPTIMIZED}" ]; then
466466

467467
# Do not enable on x86-64 macOS because the JIT requires macOS 11+ and we are currently
468468
# using 10.15 as a miniumum version.
469-
if [ "${TARGET_TRIPLE}" != "x86_64-apple-darwin" ]; then
469+
# Do not enable when free-threading, because they're not compatible yet.
470+
if [[ ! "${TARGET_TRIPLE}" == "x86_64-apple-darwin" || -n "${CPYTHON_FREETHREADED}" ]]; then
470471
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-experimental-jit=yes-off"
471472
fi
472473

0 commit comments

Comments
 (0)