Skip to content

Commit

Permalink
Update the Windows packaging script.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
CarlosAlbertoEnciso committed Jul 20, 2022
1 parent 1ddc51d commit f8c1375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/release/build_llvm_release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

::==============================================================================
Expand Down

0 comments on commit f8c1375

Please sign in to comment.