Skip to content

Commit 7f55f58

Browse files
authored
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.
1 parent b03755a commit 7f55f58

File tree

3 files changed

+2
-863
lines changed

3 files changed

+2
-863
lines changed

Makefile.pre.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1543,10 +1543,11 @@ regen-opcode-targets:
15431543
.PHONY: regen-cases
15441544
regen-cases:
15451545
# Regenerate various files from Python/bytecodes.c
1546+
# Pass CASESFLAG=-l to insert #line directives in the output
15461547
PYTHONPATH=$(srcdir)/Tools/cases_generator \
15471548
$(PYTHON_FOR_REGEN) \
15481549
$(srcdir)/Tools/cases_generator/generate_cases.py \
1549-
--emit-line-directives \
1550+
$(CASESFLAG) \
15501551
-o $(srcdir)/Python/generated_cases.c.h.new \
15511552
-m $(srcdir)/Include/internal/pycore_opcode_metadata.h.new \
15521553
-e $(srcdir)/Python/executor_cases.c.h.new \

0 commit comments

Comments
 (0)