]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-46576: bpo-46524: Disable compiler optimization within test_peg_generator...
authorGregory P. Smith <greg@krypto.org>
Thu, 3 Feb 2022 04:02:59 +0000 (20:02 -0800)
committerGitHub <noreply@github.com>
Thu, 3 Feb 2022 04:02:59 +0000 (20:02 -0800)
commitf5ebec4d3e1199ec38b88920cfde8e460e5120dd
tree499948f4d385f17a2d5b7e186ef128b847fdb0bb
parent2ddc278875f789de622262ee8ff5a1c3788f031c
[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 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Misc/NEWS.d/next/Tests/2022-01-29-12-37-53.bpo-46576.-prRaV.rst [new file with mode: 0644]
Tools/peg_generator/pegen/build.py