mirror of
https://github.com/python/cpython
synced 2024-10-02 23:39:17 +00:00
Add ABI dump script (#94135)
This commit is contained in:
parent
28a2ccfff2
commit
8e6eccabe8
8
.github/workflows/regen-abidump.sh
vendored
Normal file
8
.github/workflows/regen-abidump.sh
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
./.github/workflows/posix-deps-apt.sh
|
||||||
|
apt-get install -yq abigail-tools python3
|
||||||
|
export CFLAGS="-g3 -O0"
|
||||||
|
./configure --enable-shared && make
|
||||||
|
make regen-abidump
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -150,3 +150,6 @@ Python/frozen_modules/MANIFEST
|
||||||
# Ignore ./python binary on Unix but still look into ./Python/ directory.
|
# Ignore ./python binary on Unix but still look into ./Python/ directory.
|
||||||
/python
|
/python
|
||||||
!/Python/
|
!/Python/
|
||||||
|
|
||||||
|
# main branch only: ABI files are not checked/maintained
|
||||||
|
Doc/data/python*.abi
|
||||||
|
|
|
@ -1204,7 +1204,7 @@ regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
|
||||||
regen-abidump: all
|
regen-abidump: all
|
||||||
@$(MKDIR_P) $(srcdir)/Doc/data/
|
@$(MKDIR_P) $(srcdir)/Doc/data/
|
||||||
abidw "libpython$(LDVERSION).so" --no-architecture --out-file $(srcdir)/Doc/data/python$(LDVERSION).abi.new
|
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
|
@$(UPDATE_FILE) --create $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).abi.new
|
||||||
|
|
||||||
check-abidump: all
|
check-abidump: all
|
||||||
abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms
|
abidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types --no-architecture --no-added-syms
|
||||||
|
|
Loading…
Reference in a new issue