summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-26 16:56:19 (GMT)
committerGitHub <noreply@github.com>2019-04-26 16:56:19 (GMT)
commit6d13e5b35ba7165db3f38fccdd6e1e5283f96a74 (patch)
tree2ce1c2c8427548f0f018afd3b680447d3bd144a9 /Include
parent404606974051c5ec093312aa57cf1bcbc52e1d85 (diff)
downloadcpython-6d13e5b35ba7165db3f38fccdd6e1e5283f96a74.zip
cpython-6d13e5b35ba7165db3f38fccdd6e1e5283f96a74.tar.gz
cpython-6d13e5b35ba7165db3f38fccdd6e1e5283f96a74.tar.bz2
bpo-36722: Don't define ALT_SOABI for Py_TRACE_REFS build (GH-12973)
Py_TRACE_REFS ABI is incompatible with release and debug (Py_DEBUG) ABI.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index acbae5b..568ab8f 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -797,9 +797,9 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
#endif /* Py_BUILD_CORE */
#ifdef __ANDROID__
-/* The Android langinfo.h header is not used. */
-#undef HAVE_LANGINFO_H
-#undef CODESET
+ /* The Android langinfo.h header is not used. */
+# undef HAVE_LANGINFO_H
+# undef CODESET
#endif
/* Maximum value of the Windows DWORD type */
@@ -810,7 +810,13 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
* for compatibility.
*/
#ifndef WITH_THREAD
-#define WITH_THREAD
+# define WITH_THREAD
+#endif
+
+/* Check that ALT_SOABI is consistent with Py_TRACE_REFS:
+ ./configure --with-trace-refs should must be used to define Py_TRACE_REFS */
+#if defined(ALT_SOABI) && defined(Py_TRACE_REFS)
+# error "Py_TRACE_REFS ABI is not compatible with release and debug ABI"
#endif
#endif /* Py_PYPORT_H */