summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-12-04 22:05:58 +0000
committerGitHub <noreply@github.com>2020-12-04 22:05:58 +0000
commit85f1dedb8d05774e0d3739be0a11cd970b98097f (patch)
tree4f453d8a7426c7550e5d2500334946fbd68c356f /Makefile.pre.in
parentbpo-17735: inspect.findsource now raises OSError when co_lineno is out of ran... (diff)
downloadcpython-85f1dedb8d05774e0d3739be0a11cd970b98097f.tar.gz
cpython-85f1dedb8d05774e0d3739be0a11cd970b98097f.tar.bz2
cpython-85f1dedb8d05774e0d3739be0a11cd970b98097f.zip
bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 082945f58a7..f52a0f3cdf0 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -744,6 +744,13 @@ regen-importlib: Programs/_freeze_importlib
$(UPDATE_FILE) $(srcdir)/Python/importlib_zipimport.h $(srcdir)/Python/importlib_zipimport.h.new
+regen-limited-abi: all
+ @$(MKDIR_P) $(srcdir)/Doc/data/
+ $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py generate $(srcdir)/Doc/data/stable_abi.dat.new
+ $(UPDATE_FILE) $(srcdir)/Doc/data/stable_abi.dat \
+ $(srcdir)/Doc/data/stable_abi.dat.new
+
+
############################################################################
# Regenerate all generated files
@@ -1900,6 +1907,9 @@ funny:
patchcheck: @DEF_MAKE_RULE@
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
+check-limited-abi: all
+ $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py check $(srcdir)/Doc/data/stable_abi.dat
+
# Dependencies
Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h