Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ regen-abidump: all

.PHONY: check-abidump
check-abidump: all
abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms
abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms --suppressions $(srcdir)/Misc/libabigail.abignore

.PHONY: regen-limited-abi
regen-limited-abi: all
Expand Down
21 changes: 21 additions & 0 deletions Misc/libabigail.abignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# libabigail suppression file for CPython ABI checks
#
# Suppress types defined directly in internal headers (pycore_*.h)
# Regex matches filenames NOT starting with "pycore_", so pycore_* types are suppressed.
[suppress_type]
source_location_not_regexp = ^([^p]|p[^y]|py[^c]|pyc[^o]|pyco[^r]|pycor[^e]|pycore[^_])
accessed_through = pointer

# Suppress public typedefs that alias internal structs.
# These are public names but their underlying struct layout is internal.
[suppress_type]
name = PyInterpreterState
accessed_through = pointer

[suppress_type]
name = _PyRuntimeState
accessed_through = pointer

[suppress_type]
name = PyThreadState
accessed_through = pointer
Loading