Skip to content

Commit

Permalink
[build]: Better error detection
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDrab committed Oct 20, 2020
1 parent 9805867 commit fa234ea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ set CONFIG=%1%
set "VSCMD_START_DIR=%CD%"
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_x64 10.0 -vcvars_ver=14.2
MSBuild ..\irpmon.sln /m /Property:Configuration=%CONFIG% /Property:Platform=Win32
if errorlevel 1 goto failure
if %errorlevel% NEQ 0 goto failure
MSBuild ..\irpmon.sln /m /Property:Configuration=%CONFIG% /Property:Platform=x64
if errorlevel 1 goto failure
if %errorlevel% NEQ 0 goto failure
call rsvars
if %errorlevel% NEQ 0 goto failure
MSBuild ../gui/irpmon.dproj /m /t:Build /p:config=%CONFIG% /p:platform=Win32
if errorlevel 1 goto failure
if %errorlevel% NEQ 0 goto failure
MSBuild ../gui/irpmon.dproj /m /t:Build /p:config=%CONFIG% /p:platform=Win64
if errorlevel 1 goto failure
if %errorlevel% NEQ 0 goto failure
goto success
:failure
echo BUILD FAILED!
echo BUILD FAILED! Error code %errorlevel%
:success


0 comments on commit fa234ea

Please sign in to comment.