File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -797,9 +797,9 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
797
797
#endif /* Py_BUILD_CORE */
798
798
799
799
#ifdef __ANDROID__
800
- /* The Android langinfo.h header is not used. */
801
- #undef HAVE_LANGINFO_H
802
- #undef CODESET
800
+ /* The Android langinfo.h header is not used. */
801
+ # undef HAVE_LANGINFO_H
802
+ # undef CODESET
803
803
#endif
804
804
805
805
/* Maximum value of the Windows DWORD type */
@@ -810,7 +810,13 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
810
810
* for compatibility.
811
811
*/
812
812
#ifndef WITH_THREAD
813
- #define WITH_THREAD
813
+ # define WITH_THREAD
814
+ #endif
815
+
816
+ /* Check that ALT_SOABI is consistent with Py_TRACE_REFS:
817
+ ./configure --with-trace-refs should must be used to define Py_TRACE_REFS */
818
+ #if defined(ALT_SOABI ) && defined(Py_TRACE_REFS )
819
+ # error "Py_TRACE_REFS ABI is not compatible with release and debug ABI"
814
820
#endif
815
821
816
822
#endif /* Py_PYPORT_H */
Original file line number Diff line number Diff line change @@ -15128,7 +15128,8 @@ SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFO
15128
15128
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $SOABI " >&5
15129
15129
$as_echo " $SOABI " >&6 ; }
15130
15130
15131
- if test " $Py_DEBUG " = ' true' ; then
15131
+ # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI
15132
+ if test " $Py_DEBUG " = ' true' -a " $with_trace_refs " ! = " yes" ; then
15132
15133
# Similar to SOABI but remove "d" flag from ABIFLAGS
15133
15134
15134
15135
ALT_SOABI=' cpython-' ` echo $VERSION | tr -d .` ` echo $ABIFLAGS | tr -d d` ${PLATFORM_TRIPLET: +-$PLATFORM_TRIPLET }
Original file line number Diff line number Diff line change @@ -4627,7 +4627,8 @@ AC_MSG_CHECKING(SOABI)
4627
4627
SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
4628
4628
AC_MSG_RESULT ( $SOABI )
4629
4629
4630
- if test "$Py_DEBUG" = 'true'; then
4630
+ # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI
4631
+ if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then
4631
4632
# Similar to SOABI but remove "d" flag from ABIFLAGS
4632
4633
AC_SUBST ( ALT_SOABI )
4633
4634
ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET}
You can’t perform that action at this time.
0 commit comments