summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-07-08 04:50:09 (GMT)
committerGitHub <noreply@github.com>2023-07-08 04:50:09 (GMT)
commit48d5d32b80efe506e087e9b5a3302bf8df54aef4 (patch)
tree302dc91ae3076bd8ae72575b08161867178a6447 /Makefile.pre.in
parentffe70c4d1c85f07d9b92bf0673e715fdaa2526ed (diff)
downloadcpython-48d5d32b80efe506e087e9b5a3302bf8df54aef4.zip
cpython-48d5d32b80efe506e087e9b5a3302bf8df54aef4.tar.gz
cpython-48d5d32b80efe506e087e9b5a3302bf8df54aef4.tar.bz2
Restore previous behavior of 'make regen-cases' (#106541)
When running 'make regen-cases' just to check whether anything changed, it's annoying that even if nothing changes, the output files are touched, causing an expensiv rebuild of _bootstrap_python and anything it creates. So use consistently for all output files.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 41623bd..073b4bc 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1544,7 +1544,18 @@ regen-opcode-targets:
regen-cases:
# Regenerate various files from Python/bytecodes.c
PYTHONPATH=$(srcdir)/Tools/cases_generator \
- $(PYTHON_FOR_REGEN) $(srcdir)/Tools/cases_generator/generate_cases.py -l
+ $(PYTHON_FOR_REGEN) \
+ $(srcdir)/Tools/cases_generator/generate_cases.py \
+ --emit-line-directives \
+ -o $(srcdir)/Python/generated_cases.c.h.new \
+ -m $(srcdir)/Python/opcode_metadata.h.new \
+ -e $(srcdir)/Python/executor_cases.c.h.new \
+ -p $(srcdir)/Lib/_opcode_metadata.py.new \
+ $(srcdir)/Python/bytecodes.c
+ $(UPDATE_FILE) $(srcdir)/Python/generated_cases.c.h $(srcdir)/Python/generated_cases.c.h.new
+ $(UPDATE_FILE) $(srcdir)/Python/opcode_metadata.h $(srcdir)/Python/opcode_metadata.h.new
+ $(UPDATE_FILE) $(srcdir)/Python/executor_cases.c.h $(srcdir)/Python/executor_cases.c.h.new
+ $(UPDATE_FILE) $(srcdir)/Lib/_opcode_metadata.py $(srcdir)/Lib/_opcode_metadata.py.new
Python/compile.o: $(srcdir)/Python/opcode_metadata.h