Skip to content

Commit 2443f21

Browse files
Add new configure.ac option --enable-tail-call-interp
1 parent 8ade153 commit 2443f21

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

configure

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,22 @@ then
17171717
ABI_THREAD="t"
17181718
fi
17191719

1720+
# Check for --enable-tail-call-interp
1721+
# --enable-tail-call-interp
1722+
AC_MSG_CHECKING([for --enable-tail-call-interp])
1723+
AC_ARG_ENABLE([tail-call-interp],
1724+
[AS_HELP_STRING([--enable-tail-call-interp], [enable tail calling interpreter]) ],
1725+
[
1726+
if test "$enableval" != no
1727+
then
1728+
AC_MSG_RESULT([yes]);
1729+
AC_DEFINE([Py_TAIL_CALL_INTERP], [1],
1730+
[Define if you want to enable tail calling interpreter])
1731+
else
1732+
AC_MSG_RESULT([no]);
1733+
fi],
1734+
[AC_MSG_RESULT([no])])
1735+
17201736
# Check for --with-pydebug
17211737
AC_MSG_CHECKING([for --with-pydebug])
17221738
AC_ARG_WITH([pydebug],

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,9 @@
17181718
/* The version of SunOS/Solaris as reported by `uname -r' without the dot. */
17191719
#undef Py_SUNOS_VERSION
17201720

1721+
/* Define if you want to enable tail calling interpreter */
1722+
#undef Py_TAIL_CALL_INTERP
1723+
17211724
/* Define if you want to enable tracing references for debugging purpose */
17221725
#undef Py_TRACE_REFS
17231726

0 commit comments

Comments
 (0)