Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c44fde

Browse files
authored
bpo-36707: Remove the "m" flag (pymalloc) from SOABI (GH-12931)
"./configure --with-pymalloc" no longer adds the "m" flag to SOABI (sys.implementation.cache_tag). Enabling or disabling pymalloc has no impact on the ABI.
1 parent 4f5a349 commit 6c44fde

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``./configure --with-pymalloc`` no longer adds the ``m`` flag to SOABI
2+
(sys.implementation.cache_tag). Enabling or disabling pymalloc has no impact
3+
on the ABI.

configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11238,7 +11238,6 @@ then
1123811238

1123911239
$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
1124011240

11241-
ABIFLAGS="${ABIFLAGS}m"
1124211241
fi
1124311242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
1124411243
$as_echo "$with_pymalloc" >&6; }
@@ -15086,12 +15085,13 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1508615085
# * The Python implementation (always 'cpython-' for us)
1508715086
# * The major and minor version numbers
1508815087
# * --with-pydebug (adds a 'd')
15089-
# * --with-pymalloc (adds a 'm')
15090-
# * --with-wide-unicode (adds a 'u')
1509115088
#
1509215089
# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
1509315090
# would get a shared library ABI version tag of 'cpython-32dmu' and shared
1509415091
# libraries would be named 'foo.cpython-32dmu.so'.
15092+
#
15093+
# In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
15094+
# In Python 3.7 and older, --with-pymalloc added a 'm' flag.
1509515095

1509615096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
1509715097
$as_echo_n "checking ABIFLAGS... " >&6; }

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,7 +3400,6 @@ if test "$with_pymalloc" != "no"
34003400
then
34013401
AC_DEFINE(WITH_PYMALLOC, 1,
34023402
[Define if you want to compile in Python-specific mallocs])
3403-
ABIFLAGS="${ABIFLAGS}m"
34043403
fi
34053404
AC_MSG_RESULT($with_pymalloc)
34063405

@@ -4601,12 +4600,13 @@ AC_C_BIGENDIAN
46014600
# * The Python implementation (always 'cpython-' for us)
46024601
# * The major and minor version numbers
46034602
# * --with-pydebug (adds a 'd')
4604-
# * --with-pymalloc (adds a 'm')
4605-
# * --with-wide-unicode (adds a 'u')
46064603
#
46074604
# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
46084605
# would get a shared library ABI version tag of 'cpython-32dmu' and shared
46094606
# libraries would be named 'foo.cpython-32dmu.so'.
4607+
#
4608+
# In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
4609+
# In Python 3.7 and older, --with-pymalloc added a 'm' flag.
46104610
AC_SUBST(SOABI)
46114611
AC_MSG_CHECKING(ABIFLAGS)
46124612
AC_MSG_RESULT($ABIFLAGS)

0 commit comments

Comments
 (0)