Update the Windows packaging script.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 20 Jul 2022 12:22:10 +0000 (13:22 +0100)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Wed, 20 Jul 2022 12:22:10 +0000 (13:22 +0100)
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

llvm/utils/release/build_llvm_release.bat

index 7149ff4ddda21d173bf7469253ba638887ad0293..ce942220e94bfe7014273159982a4ce6ef9da814 100755 (executable)
@@ -106,8 +106,8 @@ REM Preserve original path
 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