Skip to content

Commit

Permalink
Add ABI dump Makefile target (#94136)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Jun 22, 2022
1 parent e52009d commit dd39e29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,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

Expand Down

0 comments on commit dd39e29

Please sign in to comment.