Call $(MKDIR_P) before regenerating the PEG meta-parser (GH-19861)

This commit is contained in:
Pablo Galindo 2020-05-02 16:15:27 +01:00 committed by GitHub
parent 531d1e5412
commit b7226eb0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -823,6 +823,7 @@ regen-grammar: regen-token
.PHONY: regen-pegen-metaparser
regen-pegen-metaparser:
@$(MKDIR_P) $(srcdir)/Tools/peg_generator/pegen
PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q python \
$(srcdir)/Tools/peg_generator/pegen/metagrammar.gram \
-o $(srcdir)/Tools/peg_generator/pegen/grammar_parser.py.new