Win: Return non-zero exit status if build_projects.bat fails.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@367 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
82ad2b6a0b
commit
85ebe06965
|
@ -1,8 +1,10 @@
|
|||
@echo off
|
||||
set RC=
|
||||
setlocal
|
||||
|
||||
if "%1" == "" (
|
||||
echo ERROR: Please specify a build target: Debug or Release
|
||||
set ERRORLEVEL=1
|
||||
goto end
|
||||
)
|
||||
|
||||
|
@ -29,8 +31,15 @@ echo Building %1 target for all projects...
|
|||
"%VCINSTALLDIR%\vcpackages\vcbuild.exe" ..\cef.sln "%1|Win32"
|
||||
) else (
|
||||
echo ERROR: Cannot find Visual Studio builder
|
||||
goto end
|
||||
set ERRORLEVEL=1
|
||||
)
|
||||
|
||||
:end
|
||||
endlocal
|
||||
endlocal & set RC=%ERRORLEVEL%
|
||||
goto omega
|
||||
|
||||
:returncode
|
||||
exit /B %RC%
|
||||
|
||||
:omega
|
||||
call :returncode %RC%
|
||||
|
|
Loading…
Reference in New Issue