mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-39794: Add --without-decimal-contextvar (#18702)
This commit is contained in:
parent
0aeab5c438
commit
815280eb16
11 changed files with 248 additions and 36 deletions
15
configure.ac
15
configure.ac
|
@ -3050,6 +3050,21 @@ AC_ARG_WITH(system_libmpdec,
|
|||
|
||||
AC_MSG_RESULT($with_system_libmpdec)
|
||||
|
||||
# Check whether _decimal should use a coroutine-local or thread-local context
|
||||
AC_MSG_CHECKING(for --with-decimal-contextvar)
|
||||
AC_ARG_WITH(decimal_contextvar,
|
||||
AS_HELP_STRING([--with-decimal-contextvar], [build _decimal module using a coroutine-local rather than a thread-local context (default is yes)]),
|
||||
[],
|
||||
[with_decimal_contextvar="yes"])
|
||||
|
||||
if test "$with_decimal_contextvar" != "no"
|
||||
then
|
||||
AC_DEFINE(WITH_DECIMAL_CONTEXTVAR, 1,
|
||||
[Define if you want build the _decimal module using a coroutine-local rather than a thread-local context])
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($with_decimal_contextvar)
|
||||
|
||||
# Check for support for loadable sqlite extensions
|
||||
AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions)
|
||||
AC_ARG_ENABLE(loadable-sqlite-extensions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue