Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add a ``./configure --enable-stackref-debug`` option to enable
``Py_STACKREF_DEBUG`` on POSIX platforms.
26 changes: 26 additions & 0 deletions configure

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

19 changes: 19 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1800,6 +1800,25 @@ then
AC_MSG_ERROR([--disable-gil cannot be used with --with-trace-refs])
fi

# Check for --enable-stackref-debug
AC_MSG_CHECKING([for --enable-stackref-debug])
AC_ARG_ENABLE([stackref-debug],
AS_HELP_STRING(
[--enable-stackref-debug],
[enable Py_STACKREF_DEBUG]
),
[],
[enable_stackref_debug=no]
)

AC_MSG_RESULT([$enable_stackref_debug])

if test "$enable_stackref_debug" = "yes"
then
AC_DEFINE([Py_STACKREF_DEBUG], [1],
[Define if you want to enable stackref debugging])
fi

# Check for --enable-pystats
AC_MSG_CHECKING([for --enable-pystats])
AC_ARG_ENABLE([pystats],
Expand Down
3 changes: 3 additions & 0 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,9 @@
/* Define if rl_startup_hook takes arguments */
#undef Py_RL_STARTUP_HOOK_TAKES_ARGS

/* Define if you want to enable stackref debugging */
#undef Py_STACKREF_DEBUG

/* Define if you want to enable internal statistics gathering. */
#undef Py_STATS

Expand Down
Loading