cpython/Tools/peg_generator/pegen
Gregory P. Smith f5ebec4d3e
[3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (GH-31015) (GH-31089)
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 GH-31017's win32 conditional and flags.

Co-authored-by: Kumar Aditya kumaraditya303.
(cherry picked from commit 164a017e13)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2022-02-02 20:02:59 -08:00
..
__init__.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
__main__.py Add small validator utility for PEG grammars (GH-23519) 2020-12-26 19:11:29 +00:00
ast_dump.py Fix some scripts in the peg generator folder (GH-19853) 2020-05-02 05:23:06 +01:00
build.py [3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (GH-31015) (GH-31089) 2022-02-02 20:02:59 -08:00
c_generator.py [3.10] bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177) (GH-30214) 2021-12-20 16:23:37 +00:00
first_sets.py [3.10] Fix typos in the Tools directory (GH-28769) (GH-28801) 2021-10-07 17:34:55 +02:00
grammar.py bpo-42997: Improve error message for missing : before suites (GH-24292) 2021-02-02 19:54:22 +00:00
grammar_parser.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) 2021-11-26 16:38:50 +01:00
grammar_visualizer.py Clean up unused imports for the peg generator module (GH-19891) 2020-05-04 03:03:05 +01:00
keywordgen.py Delete remaining references to Grammar/Grammar from docs (#21624) 2020-07-26 08:27:52 -07:00
metagrammar.gram bpo-42997: Improve error message for missing : before suites (GH-24292) 2021-02-02 19:54:22 +00:00
parser.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
parser_generator.py Fix typing problems reported by mypy in pegen (GH-20297) 2020-05-21 21:39:44 +01:00
python_generator.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) 2021-11-26 16:38:50 +01:00
sccutils.py Revert "Fix all Python Cookbook links (#22205)" (GH-22424) 2020-09-27 01:47:25 +01:00
testutil.py bpo-40750: Support -d flag in the new parser (GH-20340) 2020-05-25 18:38:45 +01:00
tokenizer.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
validator.py Add small validator utility for PEG grammars (GH-23519) 2020-12-26 19:11:29 +00:00