summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-09 00:33:48 (GMT)
committerGitHub <noreply@github.com>2021-04-09 00:33:48 (GMT)
commit49b7ab1533294529f15f78b65853dcf1fd872909 (patch)
tree408cd069a4592c91a3a11ca068ec51ca6977e117 /Makefile.pre.in
parent20d56bd41b56023ce9fa3739c0c9aa8be8d48bfa (diff)
downloadcpython-49b7ab1533294529f15f78b65853dcf1fd872909.zip
cpython-49b7ab1533294529f15f78b65853dcf1fd872909.tar.gz
cpython-49b7ab1533294529f15f78b65853dcf1fd872909.tar.bz2
Add CI step to check changes in the exported ABI (GH-25232)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index a914a9c..3028078 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -725,6 +725,13 @@ regen-importlib: Programs/_freeze_importlib
$(srcdir)/Python/importlib_zipimport.h.new
$(UPDATE_FILE) $(srcdir)/Python/importlib_zipimport.h $(srcdir)/Python/importlib_zipimport.h.new
+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 "libpython$(LDVERSION).so" $(srcdir)/Doc/data/python$(LDVERSION).abi --drop-private-types --no-architecture --no-added-syms
############################################################################
# Regenerate all generated files