cpython/Tools/peg_generator/pegen
Gregory P. Smith 164a017e13
bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015)
Disable compiler optimization within test_peg_generator.

This speed up test_peg_generator by always disabling compiler
optimizations by using -O0 or equivalent when the test is building its
own C extensions.

A build not using --with-pydebug in order to speed up test execution
winds up with this test taking a very long time as it would do
repeated compilation of parser C code using the same optimization
flags as CPython was built with.

This speeds the test up 6-8x on gps-raspbian.

Also incorporate's #31017's win32 conditional and flags.

Co-authored-by: Kumar Aditya kumaraditya303
2022-02-02 12:15:16 -08:00
..
__init__.py
__main__.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
ast_dump.py Update pegen to use the latest upstream developments (GH-27586) 2021-08-12 17:37:30 +01:00
build.py bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (#31015) 2022-02-02 12:15:16 -08:00
c_generator.py bpo-46110: Restore commit e9898bf153 2022-01-03 19:54:06 +00:00
first_sets.py Fix typos in the Tools directory (GH-28769) 2021-10-06 10:55:16 -07:00
grammar.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
grammar_parser.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) 2021-11-26 11:50:34 +01:00
grammar_visualizer.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
keywordgen.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
metagrammar.gram Update pegen to use the latest upstream developments (GH-27586) 2021-08-12 17:37:30 +01:00
parser.py [Tools/peg_generator/pegen/parser.py] Fix typo: s/wether/whether/ (GH-28739) 2021-10-05 23:06:19 +02:00
parser_generator.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
python_generator.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) 2021-11-26 11:50:34 +01:00
sccutils.py Revert "Fix all Python Cookbook links (#22205)" (GH-22424) 2020-09-27 01:47:25 +01:00
testutil.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00
tokenizer.py Update pegen to use the latest upstream developments (GH-27586) 2021-08-12 17:37:30 +01:00
validator.py Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172) 2021-09-05 14:58:52 +01:00