When having a closer look at the new Windows PGO Tailcall build logs - [AMD64 Windows PGO Tailcall 3.x/1](https://buildbot.python.org/#/builders/1870/builds/1) - [AMD64 Windows PGO NoGIL Tailcall 3.x/1](https://buildbot.python.org/#/builders/1871/builds/1) I've stumbled over ``` error : PGO run did not succeed (no python315!*.pgc files) and there is no data to merge ``` A closer look reveals that this happens on all Windows PGO builds in case of calling the `Clean` or `CleanAll` target. The culprit is here https://github.com/python/cpython/blob/5944a539b91cc6bd140c64a3530d08015a4f8c30/PCbuild/build.bat#L162-L171 where - the `pgo_job` is always invoked - and the target is always switched to `target=Build` in the `PGUpdate` phase. I'll send a PR shortly. cc @itamaro <!-- gh-linked-prs --> ### Linked PRs * gh-145111 <!-- /gh-linked-prs -->
When having a closer look at the new Windows PGO Tailcall build logs
I've stumbled over
A closer look reveals that this happens on all Windows PGO builds in case of calling the
CleanorCleanAlltarget. The culprit is herecpython/PCbuild/build.bat
Lines 162 to 171 in 5944a53
where
pgo_jobis always invokedtarget=Buildin the
PGUpdatephase.I'll send a PR shortly.
cc @itamaro
Linked PRs
CleanandCleanAllfor argument-tofbatch.batin case of PGO builds on Windows #145111