Sorry, something went wrong.
There was a problem hiding this comment.
| if sysconfig.get_config_var('PGO_PROF_USE_FLAG') in _pyflags_nodist: | |
| if sysconfig.get_config_var('PGO_PROF_USE_FLAG') is not None and sysconfig.get_config_var('PGO_PROF_USE_FLAG') in _pyflags_nodist: |
Sorry, something went wrong.
There was a problem hiding this comment.
sysconfig.get_config_var('PGO_PROF_USE_FLAG') can be None (chec the windows output).
Sorry, something went wrong.
There was a problem hiding this comment.
I made a small variation on that idea.
Sorry, something went wrong.
|
Thanks @serge-sans-paille for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
|
GH-23155 is a backport of this pull request to the 3.9 branch. |
Sorry, something went wrong.
Otherwise, when running the testsuite, test_peg_generator tries to compile C
code using the optimized flags and fails because it cannot find the profile
data.
https://bugs.python.org/issue42207