Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions PCbuild/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,20 @@ if "%do_pgo%"=="true" (
del /s "%dir%\*.pgc"
del /s "%dir%\..\Lib\*.pyc"
set conf=PGUpdate
if "%clean%"=="false" (
echo on
call "%dir%\..\python.bat" %pgo_job%
@echo off
call :Kill
set target=Build
)
if "%clean%"=="false" goto :RunPgoJob
)
goto :Build

:RunPgoJob
echo on
call "%dir%\..\python.bat" %pgo_job%
@echo off
set pgo_errorlevel=%ERRORLEVEL%
call :Kill
if %pgo_errorlevel% NEQ 0 exit /B %pgo_errorlevel%
set target=Build
goto :Build

:Kill
echo on
%MSBUILD% "%dir%\pythoncore.vcxproj" /t:KillPython %verbose%^
Expand Down
Loading