File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ set CONFIG=%1%
2
2
set " VSCMD_START_DIR = %CD% "
3
3
call " c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_x64 10.0 -vcvars_ver=14.2
4
4
MSBuild ..\irpmon.sln /m /Property:Configuration=%CONFIG% /Property:Platform=Win32
5
- if errorlevel 1 goto failure
5
+ if % errorlevel% NEQ 0 goto failure
6
6
MSBuild ..\irpmon.sln /m /Property:Configuration=%CONFIG% /Property:Platform=x64
7
- if errorlevel 1 goto failure
7
+ if % errorlevel% NEQ 0 goto failure
8
8
call rsvars
9
+ if %errorlevel% NEQ 0 goto failure
9
10
MSBuild ../gui/irpmon.dproj /m /t:Build /p:config=%CONFIG% /p:platform=Win32
10
- if errorlevel 1 goto failure
11
+ if % errorlevel% NEQ 0 goto failure
11
12
MSBuild ../gui/irpmon.dproj /m /t:Build /p:config=%CONFIG% /p:platform=Win64
12
- if errorlevel 1 goto failure
13
+ if % errorlevel% NEQ 0 goto failure
13
14
goto success
14
15
:failure
15
- echo BUILD FAILED!
16
+ echo BUILD FAILED! Error code %errorlevel%
16
17
:success
17
18
18
19
You can’t perform that action at this time.
0 commit comments