GH-133171: Prevent combinations of --disable-gil and --enable-experimental-jit... for now (GH-133179)

This commit is contained in:
Brandt Bucher 2025-05-02 09:26:03 -07:00 committed by GitHub
parent f425509349
commit 2da48e32f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 26 deletions

View file

@ -2786,6 +2786,12 @@ AC_SUBST([REGEN_JIT_COMMAND])
AC_SUBST([JIT_STENCILS_H])
AC_MSG_RESULT([$tier2_flags $jit_flags])
if test "$disable_gil" = "yes" -a "$enable_experimental_jit" != "no"; then
# GH-133171: This configuration builds the JIT but never actually uses it,
# which is surprising (and strictly worse than not building it at all):
AC_MSG_ERROR([--enable-experimental-jit cannot be used with --disable-gil.])
fi
case "$ac_cv_cc_name" in
mpicc)
CFLAGS_NODIST="$CFLAGS_NODIST"