From c6f0de38051335e4bd6f60e4d9082dc35b37df37 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Wed, 22 Jun 2022 17:48:03 +0100 Subject: [PATCH] Add ABI dump Makefile target --- Makefile.pre.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in index f3c70b99c9e221..fcfb9af4175241 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1198,6 +1198,14 @@ regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py ############################################################################ # ABI +regen-abidump: all + @$(MKDIR_P) $(srcdir)/Doc/data/ + abidw "libpython$(LDVERSION).so" --no-architecture --out-file $(srcdir)/Doc/data/python$(LDVERSION).abi.new + @$(UPDATE_FILE) $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new + +check-abidump: all + abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms + regen-limited-abi: all $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --generate-all $(srcdir)/Misc/stable_abi.toml