File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ Misc/externals.spdx.json @sethmlarson
143143Misc /sbom.spdx.json @ sethmlarson
144144Tools /build /generate_sbom.py @ sethmlarson
145145
146+ # ABI check
147+ Misc /libabigail.abignore @ encukou
148+
146149
147150# ----------------------------------------------------------------------------
148151# Platform Support
Original file line number Diff line number Diff line change @@ -1883,7 +1883,7 @@ regen-abidump: all
18831883
18841884.PHONY: check-abidump
18851885check-abidump: all
1886- abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms
1886+ abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms --suppressions $(srcdir)/Misc/libabigail.abignore
18871887
18881888.PHONY: regen-limited-abi
18891889regen-limited-abi: all
Original file line number Diff line number Diff line change 1+ # libabigail suppression file for CPython ABI checks
2+ #
3+ # Suppress types defined directly in internal headers (pycore_*.h)
4+ # Regex matches filenames NOT starting with "pycore_", so pycore_* types are suppressed.
5+ [suppress_type]
6+ source_location_not_regexp = ^([^p]|p[^y]|py[^c]|pyc[^o]|pyco[^r]|pycor[^e]|pycore[^_])
7+ accessed_through = pointer
8+
9+ # Suppress public typedefs that alias internal structs.
10+ # These are public names but their underlying struct layout is internal.
11+ [suppress_type]
12+ name = PyInterpreterState
13+ accessed_through = pointer
14+
15+ [suppress_type]
16+ name = _PyRuntimeState
17+ accessed_through = pointer
18+
19+ [suppress_type]
20+ name = PyThreadState
21+ accessed_through = pointer
22+
23+ [suppress_variable]
24+ name = _PyRuntime
25+ type_name = _PyRuntimeState
You can’t perform that action at this time.
0 commit comments