[llvm] f8c1375 - Update the Windows packaging script.

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 05:23:06 PDT 2022


Author: Carlos Alberto Enciso
Date: 2022-07-20T13:22:10+01:00
New Revision: f8c13754af55c1dcee3ee0a57580b43c422662c4

URL: https://github.com/llvm/llvm-project/commit/f8c13754af55c1dcee3ee0a57580b43c422662c4
DIFF: https://github.com/llvm/llvm-project/commit/f8c13754af55c1dcee3ee0a57580b43c422662c4.diff

LOG: Update the Windows packaging script.

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

Added: 
    

Modified: 
    llvm/utils/release/build_llvm_release.bat

Removed: 
    


################################################################################
diff  --git a/llvm/utils/release/build_llvm_release.bat b/llvm/utils/release/build_llvm_release.bat
index 7149ff4ddda21..ce942220e94bf 100755
--- a/llvm/utils/release/build_llvm_release.bat
+++ b/llvm/utils/release/build_llvm_release.bat
@@ -106,8 +106,8 @@ REM Preserve original path
 set OLDPATH=%PATH%
 
 REM Build the 32-bits and/or 64-bits binaries.
-call :do_build_32 if errorlevel 1 exit /b 1
-call :do_build_64 if errorlevel 1 exit /b 1
+call :do_build_32 || exit /b 1
+call :do_build_64 || exit /b 1
 exit /b 0
 
 ::==============================================================================


        


More information about the llvm-commits mailing list