As discussed on:
https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6
Giving:
call :function if errorlevel 1 exit /b 1
Due to a missing new line, the error code returned by the function
is taking as another argument.
Changed to use standard '||' to exit if the errorlevel greater than zero.
call :function || exit /b 1
Reviewed By: hans
Differential Revision: https://reviews.llvm.org/
D130154
set OLDPATH=%PATH%\r
\r
REM Build the 32-bits and/or 64-bits binaries.\r
-call :do_build_32 if errorlevel 1 exit /b 1\r
-call :do_build_64 if errorlevel 1 exit /b 1\r
+call :do_build_32 || exit /b 1\r
+call :do_build_64 || exit /b 1\r
exit /b 0\r
\r
::==============================================================================\r