mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-109740: Use 't' in --disable-gil SOABI (#109922)
Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
This commit is contained in:
parent
b35f0843fc
commit
773614e03a
6 changed files with 72 additions and 49 deletions
33
configure.ac
33
configure.ac
|
|
@ -1489,6 +1489,23 @@ fi
|
|||
AC_SUBST([ABIFLAGS])
|
||||
ABIFLAGS=""
|
||||
|
||||
# Check for --disable-gil
|
||||
# --disable-gil
|
||||
AC_MSG_CHECKING([for --disable-gil])
|
||||
AC_ARG_ENABLE([gil],
|
||||
[AS_HELP_STRING([--disable-gil], [enable experimental support for running without the GIL (default is no)])],
|
||||
[AS_VAR_IF([enable_gil], [yes], [disable_gil=no], [disable_gil=yes])], [disable_gil=no]
|
||||
)
|
||||
AC_MSG_RESULT([$disable_gil])
|
||||
|
||||
if test "$disable_gil" = "yes"
|
||||
then
|
||||
AC_DEFINE([Py_NOGIL], [1],
|
||||
[Define if you want to disable the GIL])
|
||||
# Add "t" for "threaded"
|
||||
ABIFLAGS="${ABIFLAGS}t"
|
||||
fi
|
||||
|
||||
# Check for --with-pydebug
|
||||
AC_MSG_CHECKING([for --with-pydebug])
|
||||
AC_ARG_WITH([pydebug],
|
||||
|
|
@ -5669,6 +5686,7 @@ AC_C_BIGENDIAN
|
|||
#
|
||||
# * The Python implementation (always 'cpython-' for us)
|
||||
# * The major and minor version numbers
|
||||
# * --disable-gil (adds a 't')
|
||||
# * --with-pydebug (adds a 'd')
|
||||
#
|
||||
# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
|
||||
|
|
@ -6947,21 +6965,6 @@ AC_ARG_ENABLE([test-modules],
|
|||
AC_MSG_RESULT([$TEST_MODULES])
|
||||
AC_SUBST([TEST_MODULES])
|
||||
|
||||
# Check for --disable-gil
|
||||
# --disable-gil
|
||||
AC_MSG_CHECKING([for --disable-gil])
|
||||
AC_ARG_ENABLE([gil],
|
||||
[AS_HELP_STRING([--disable-gil], [enable experimental support for running without the GIL (default is no)])],
|
||||
[AS_VAR_IF([enable_gil], [yes], [disable_gil=no], [disable_gil=yes])], [disable_gil=no]
|
||||
)
|
||||
AC_MSG_RESULT([$disable_gil])
|
||||
|
||||
if test "$disable_gil" = "yes"
|
||||
then
|
||||
AC_DEFINE([Py_NOGIL], [1],
|
||||
[Define if you want to disable the GIL])
|
||||
fi
|
||||
|
||||
# gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
|
||||
# On Linux aarch64, GCC may require programs and libraries to be linked
|
||||
# explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue