Skip to content

Commit

Permalink
Rip out --enable-experimental-tier2, in favor of --enable-experimenta…
Browse files Browse the repository at this point in the history
…l-jit=XXX

There's more to do.
  • Loading branch information
gvanrossum committed Apr 30, 2024
1 parent 6e2777b commit f228a06
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Include/Python.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// The JIT depends on TIER2
#ifdef _Py_JIT
#define _Py_TIER2 1
#define _Py_TIER2 _Py_JIT
#endif

// Include Python header files
Expand Down
32 changes: 6 additions & 26 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 7 additions & 15 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1765,14 +1765,19 @@ fi
# Check for --enable-experimental-jit:
AC_MSG_CHECKING([for --enable-experimental-jit])
AC_ARG_ENABLE([experimental-jit],
[AS_HELP_STRING([--enable-experimental-jit],
[AS_HELP_STRING([--enable-experimental-jit@<:@=no|yes|yes-default-off|interpreter@:>@],
[build the experimental just-in-time compiler (default is no)])],
[],
[enable_experimental_jit=no])
case $enable_experimental_jit in
no|yes|yes-default-off|interpreter) ;;
*) AC_MSG_ERROR(
[invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-default-off|interpreter]) ;;
esac
AS_VAR_IF([enable_experimental_jit],
[no],
[],
[AS_VAR_APPEND([CFLAGS_NODIST], [" -D_Py_JIT"])
[AS_VAR_APPEND([CFLAGS_NODIST], [" -D_Py_JIT=_PY_JIT_$(echo $enable_experimental_jit | tr a-z- A-Z_)"])
AS_VAR_SET([REGEN_JIT_COMMAND],
["\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"])
AS_VAR_SET([JIT_STENCILS_H], ["jit_stencils.h"])
Expand All @@ -1784,19 +1789,6 @@ AC_SUBST([REGEN_JIT_COMMAND])
AC_SUBST([JIT_STENCILS_H])
AC_MSG_RESULT([$enable_experimental_jit])

# Check for --enable-experimental-tier2:
AC_MSG_CHECKING([for --enable-experimental-tier2])
AC_ARG_ENABLE([experimental-tier2],
[AS_HELP_STRING([--enable-experimental-tier2],
[use the experimental tier 2 interpreter (default is no)])],
[],
[enable_experimental_tier2=no])
AS_VAR_IF([enable_experimental_tier2],
[no],
[],
[AS_VAR_APPEND([CFLAGS_NODIST], [" -D_Py_TIER2"])])
AC_MSG_RESULT([$enable_experimental_tier2])

# Enable optimization flags
AC_SUBST([DEF_MAKE_ALL_RULE])
AC_SUBST([DEF_MAKE_RULE])
Expand Down

0 comments on commit f228a06

Please sign in to comment.