summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2024-05-01 23:36:29 (GMT)
committerGitHub <noreply@github.com>2024-05-01 23:36:29 (GMT)
commita524152b8c56f82d807ecdd7ae9d39cfd643c469 (patch)
tree4acd55efd6be7ffe19ee5077b94205c5f1e648ec /configure.ac
parent97feb4a78bf1ebdec26b685fd509cf57b3333e4a (diff)
downloadcpython-a524152b8c56f82d807ecdd7ae9d39cfd643c469.zip
cpython-a524152b8c56f82d807ecdd7ae9d39cfd643c469.tar.gz
cpython-a524152b8c56f82d807ecdd7ae9d39cfd643c469.tar.bz2
gh-118335: Make REGEN_JIT_COMMAND empty if tier2 interpreter enabled (#118493)
Also patch up news blurb for gh-118339 (add warning that PYTHON_UOPS is now PYTHON_JIT).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 13 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 0f11778..c55e33a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1776,18 +1776,22 @@ AC_ARG_ENABLE([experimental-jit],
[],
[enable_experimental_jit=no])
case $enable_experimental_jit in
- no) enable_experimental_jit=no ;;
- yes) enable_experimental_jit="-D_Py_JIT -D_Py_TIER2=1" ;;
- yes-off) enable_experimental_jit="-D_Py_JIT -D_Py_TIER2=3" ;;
- interpreter) enable_experimental_jit="-D_Py_TIER2=4" ;;
- interpreter-off) enable_experimental_jit="-D_Py_TIER2=6" ;; # Secret option
+ no) jit_flags=""; tier2_flags="" ;;
+ yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;;
+ yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;;
+ interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;;
+ interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option
*) AC_MSG_ERROR(
[invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter]) ;;
esac
-AS_VAR_IF([enable_experimental_jit],
- [no],
+AS_VAR_IF([tier2_flags],
[],
- [AS_VAR_APPEND([CFLAGS_NODIST], [" $enable_experimental_jit"])
+ [],
+ [AS_VAR_APPEND([CFLAGS_NODIST], [" $tier2_flags"])])
+AS_VAR_IF([jit_flags],
+ [],
+ [],
+ [AS_VAR_APPEND([CFLAGS_NODIST], [" $jit_flags"])
AS_VAR_SET([REGEN_JIT_COMMAND],
["\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"])
AS_VAR_SET([JIT_STENCILS_H], ["jit_stencils.h"])
@@ -1797,7 +1801,7 @@ AS_VAR_IF([enable_experimental_jit],
[])])
AC_SUBST([REGEN_JIT_COMMAND])
AC_SUBST([JIT_STENCILS_H])
-AC_MSG_RESULT([$enable_experimental_jit])
+AC_MSG_RESULT([$tier2_flags $jit_flags])
# Enable optimization flags
AC_SUBST([DEF_MAKE_ALL_RULE])