mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-148644: Propagate the PGO job exit code in PCbuild/build.bat (GH-148645)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Errors during the PGO training job on Windows are no longer ignored, and a non-zero return code will cause the build to fail.
|
||||
+11
-7
@@ -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%^
|
||||
|
||||
Reference in New Issue
Block a user