From 8426b38fd73d1eedb2d70e9beb82b68efb2b8503 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Fri, 9 Apr 2021 21:44:27 +0100 Subject: [PATCH] Add ignore file for the abidump check --- Doc/data/python3.9.abi.ignorefile | 8 ++++++++ Makefile.pre.in | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Doc/data/python3.9.abi.ignorefile diff --git a/Doc/data/python3.9.abi.ignorefile b/Doc/data/python3.9.abi.ignorefile new file mode 100644 index 00000000000000..a9c89f0a746c83 --- /dev/null +++ b/Doc/data/python3.9.abi.ignorefile @@ -0,0 +1,8 @@ +[suppress_type] +name_regexp = _Py.* + +[suppress_variable] +name_regexp = _Py.* + +[suppress_function] +name_regexp = _Py.* diff --git a/Makefile.pre.in b/Makefile.pre.in index d088eb5768fc8a..9aeeac5cca295a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -759,7 +759,9 @@ regen-abidump: all @$(UPDATE_FILE) $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new check-abidump: all - abidiff "libpython$(LDVERSION).so" $(srcdir)/Doc/data/python$(LDVERSION).abi --drop-private-types --no-architecture --no-added-syms + abidiff "libpython$(LDVERSION).so" $(srcdir)/Doc/data/python$(LDVERSION).abi --drop-private-types \ + --suppressions $(srcdir)/Doc/data/python$(LDVERSION).abi.ignorefile \ + --no-architecture --no-added-syms ############################################################################ # Regenerate all generated files