diff options
author | Neil Schemenauer <nas-github@arctrix.com> | 2021-03-06 21:34:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 21:34:03 (GMT) |
commit | 87ec26b812e9c4095c017dc60f246eda37b83ab2 (patch) | |
tree | 5f690c46fb72f2d2e368c086f7310a46ea6368f1 /Makefile.pre.in | |
parent | 5eb7796b7f3aae91b145ccea51b528662f3b5ce1 (diff) | |
download | cpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.zip cpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.tar.gz cpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.tar.bz2 |
bpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759)
This approach ensures the code matches the interpreter version.
Previously, PYTHON_FOR_REGEN was used to generate the code, which might
be wrong. The marshal format for code objects has changed with
bpo-42246, commit 877df851. Update the code and the expected code sizes
in ctypes test_frozentable.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 0f59700..5d230ec 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -871,9 +871,13 @@ regen-opcode: $(UPDATE_FILE) $(srcdir)/Include/opcode.h $(srcdir)/Include/opcode.h.new .PHONY: regen-frozen -regen-frozen: +regen-frozen: Programs/_freeze_importlib # Regenerate code for frozen module "__hello__". - $(PYTHON_FOR_REGEN) $(srcdir)/Tools/freeze/regen_frozen.py $(srcdir)/Python/frozen_hello.h + ./Programs/_freeze_importlib hello \ + $(srcdir)/Tools/freeze/flag.py \ + $(srcdir)/Python/frozen_hello.h.new + $(UPDATE_FILE) $(srcdir)/Python/frozen_hello.h \ + $(srcdir)/Python/frozen_hello.h.new .PHONY: regen-token regen-token: |