summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-07-12 16:12:39 (GMT)
committerGitHub <noreply@github.com>2023-07-12 16:12:39 (GMT)
commit7f55f58b6c97306da350f5b441d26f859e9d8f16 (patch)
tree47ab62907dff5a38c4a43f6ddf4432df1c0be268 /Makefile.pre.in
parentb03755a2347325a89a48b08fc158419000513bcb (diff)
downloadcpython-7f55f58b6c97306da350f5b441d26f859e9d8f16.zip
cpython-7f55f58b6c97306da350f5b441d26f859e9d8f16.tar.gz
cpython-7f55f58b6c97306da350f5b441d26f859e9d8f16.tar.bz2
gh-106656: Remove --emit-line-directives from regen-cases (#106657)
If you prefer to see `#line` directives in generated_cases.c.h, run ``` make regen-cases CASESFLAG=-l ``` But please don't commit the result.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index a1ceedb..4b65551 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1543,10 +1543,11 @@ regen-opcode-targets:
.PHONY: regen-cases
regen-cases:
# Regenerate various files from Python/bytecodes.c
+ # Pass CASESFLAG=-l to insert #line directives in the output
PYTHONPATH=$(srcdir)/Tools/cases_generator \
$(PYTHON_FOR_REGEN) \
$(srcdir)/Tools/cases_generator/generate_cases.py \
- --emit-line-directives \
+ $(CASESFLAG) \
-o $(srcdir)/Python/generated_cases.c.h.new \
-m $(srcdir)/Include/internal/pycore_opcode_metadata.h.new \
-e $(srcdir)/Python/executor_cases.c.h.new \