cpython/Tools/peg_generator/pegen
Miss Islington (bot) e8258608c2
[3.9] [3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (GH-31015) (GH-31089) (GH-31093)
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>
(cherry picked from commit f5ebec4d3e)


Co-authored-by: Gregory P. Smith <greg@krypto.org>

Automerge-Triggered-By: GH:gpshead
2022-02-02 20:32:54 -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 bpo-40334: Refactor peg_generator to receive a Tokens file when building c code (GH-19745) 2020-04-28 13:11:55 +01: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.9] [3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator. (GH-31015) (GH-31089) (GH-31093) 2022-02-02 20:32:54 -08:00
c_generator.py [3.9] bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177) (#30215) 2021-12-20 17:18:13 +00:00
first_sets.py [3.9] Fix typos in the Tools directory (GH-28769) (GH-28800) 2021-10-07 17:31:24 +02:00
grammar.py Clean up unused imports for the peg generator module (GH-19891) 2020-05-04 03:03:05 +01:00
grammar_parser.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) (GH-29797) 2021-11-26 17:23:41 +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 [3.9] Include soft keywords in keyword.py (GH-20877). (GH-20880) 2020-06-15 04:31:05 +01:00
metagrammar.gram bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01: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 [3.9] Fix typing problems reported by mypy in pegen (GH-20297) (GH-20300) 2020-05-21 22:09:43 +01:00
python_generator.py bpo-45866: pegen strips directory of "generated from" header (GH-29777) (GH-29792) (GH-29797) 2021-11-26 17:23:41 +01:00
sccutils.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
testutil.py bpo-40750: Support -d flag in the new parser (GH-20340) 2020-05-25 10:58:03 -07:00
tokenizer.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00