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
65
configure
generated
vendored
65
configure
generated
vendored
|
|
@ -1065,6 +1065,7 @@ with_suffix
|
|||
enable_shared
|
||||
with_static_libpython
|
||||
enable_profiling
|
||||
enable_gil
|
||||
with_pydebug
|
||||
with_trace_refs
|
||||
enable_pystats
|
||||
|
|
@ -1105,7 +1106,6 @@ with_openssl_rpath
|
|||
with_ssl_default_suites
|
||||
with_builtin_hashlib_hashes
|
||||
enable_test_modules
|
||||
enable_gil
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
|
|
@ -1792,6 +1792,8 @@ Optional Features:
|
|||
no)
|
||||
--enable-profiling enable C-level code profiling with gprof (default is
|
||||
no)
|
||||
--disable-gil enable experimental support for running without the
|
||||
GIL (default is no)
|
||||
--enable-pystats enable internal statistics gathering (default is no)
|
||||
--enable-optimizations enable expensive, stable optimizations (PGO, etc.)
|
||||
(default is no)
|
||||
|
|
@ -1806,8 +1808,6 @@ Optional Features:
|
|||
use big digits (30 or 15 bits) for Python longs
|
||||
(default is 30)]
|
||||
--disable-test-modules don't build nor install test modules
|
||||
--disable-gil enable experimental support for running without the
|
||||
GIL (default is no)
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
|
|
@ -7845,6 +7845,36 @@ fi
|
|||
|
||||
ABIFLAGS=""
|
||||
|
||||
# Check for --disable-gil
|
||||
# --disable-gil
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
|
||||
printf %s "checking for --disable-gil... " >&6; }
|
||||
# Check whether --enable-gil was given.
|
||||
if test ${enable_gil+y}
|
||||
then :
|
||||
enableval=$enable_gil; if test "x$enable_gil" = xyes
|
||||
then :
|
||||
disable_gil=no
|
||||
else $as_nop
|
||||
disable_gil=yes
|
||||
fi
|
||||
else $as_nop
|
||||
disable_gil=no
|
||||
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
|
||||
printf "%s\n" "$disable_gil" >&6; }
|
||||
|
||||
if test "$disable_gil" = "yes"
|
||||
then
|
||||
|
||||
printf "%s\n" "#define Py_NOGIL 1" >>confdefs.h
|
||||
|
||||
# Add "t" for "threaded"
|
||||
ABIFLAGS="${ABIFLAGS}t"
|
||||
fi
|
||||
|
||||
# Check for --with-pydebug
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
|
||||
printf %s "checking for --with-pydebug... " >&6; }
|
||||
|
|
@ -23546,6 +23576,7 @@ printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
|||
#
|
||||
# * 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,
|
||||
|
|
@ -27724,34 +27755,6 @@ fi
|
|||
printf "%s\n" "$TEST_MODULES" >&6; }
|
||||
|
||||
|
||||
# Check for --disable-gil
|
||||
# --disable-gil
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
|
||||
printf %s "checking for --disable-gil... " >&6; }
|
||||
# Check whether --enable-gil was given.
|
||||
if test ${enable_gil+y}
|
||||
then :
|
||||
enableval=$enable_gil; if test "x$enable_gil" = xyes
|
||||
then :
|
||||
disable_gil=no
|
||||
else $as_nop
|
||||
disable_gil=yes
|
||||
fi
|
||||
else $as_nop
|
||||
disable_gil=no
|
||||
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
|
||||
printf "%s\n" "$disable_gil" >&6; }
|
||||
|
||||
if test "$disable_gil" = "yes"
|
||||
then
|
||||
|
||||
printf "%s\n" "#define Py_NOGIL 1" >>confdefs.h
|
||||
|
||||
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