Skip to content

Arguments Clean and CleanAll for argument -t of batch.bat do not work correctly in case of PGO builds on Windows #145110

@chris-eibl

Description

@chris-eibl

When having a closer look at the new Windows PGO Tailcall build logs

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

cpython/PCbuild/build.bat

Lines 162 to 171 in 5944a53

if "%do_pgo%"=="true" (
del /s "%dir%\*.pgc"
del /s "%dir%\..\Lib\*.pyc"
echo on
call "%dir%\..\python.bat" %pgo_job%
@echo off
call :Kill
set conf=PGUpdate
set target=Build
)

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

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-windowsbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions