Skip to content

Commit

Permalink
Add new configure.ac option --enable-tail-call-interp
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Jan 4, 2025
1 parent 8ade153 commit 2443f21
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
29 changes: 29 additions & 0 deletions configure

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

16 changes: 16 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,22 @@ then
ABI_THREAD="t"
fi

# Check for --enable-tail-call-interp
# --enable-tail-call-interp
AC_MSG_CHECKING([for --enable-tail-call-interp])
AC_ARG_ENABLE([tail-call-interp],
[AS_HELP_STRING([--enable-tail-call-interp], [enable tail calling interpreter]) ],
[
if test "$enableval" != no
then
AC_MSG_RESULT([yes]);
AC_DEFINE([Py_TAIL_CALL_INTERP], [1],
[Define if you want to enable tail calling interpreter])
else
AC_MSG_RESULT([no]);
fi],
[AC_MSG_RESULT([no])])

# Check for --with-pydebug
AC_MSG_CHECKING([for --with-pydebug])
AC_ARG_WITH([pydebug],
Expand Down
3 changes: 3 additions & 0 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,9 @@
/* The version of SunOS/Solaris as reported by `uname -r' without the dot. */
#undef Py_SUNOS_VERSION

/* Define if you want to enable tail calling interpreter */
#undef Py_TAIL_CALL_INTERP

/* Define if you want to enable tracing references for debugging purpose */
#undef Py_TRACE_REFS

Expand Down

0 comments on commit 2443f21

Please sign in to comment.