Skip to content

Commit 08f9ffa

Browse files
committed
error handling
1 parent a927c02 commit 08f9ffa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

utils/build-windows-toolchain.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
8181
-BuildType %CMAKE_BUILD_TYPE% ^
8282
%SkipPackagingArg% ^
8383
%TestArg% ^
84-
-Stage %StagePath%
85-
86-
:: Fail if powershell.exe exited with error code 1 or above (failure)
87-
if ErrorLevel 1 exit /b 1
84+
-Stage %StagePath% || (exit /b)
8885

8986
:: Clean up the module cache
9087
rd /s /q %LocalAppData%\clang\ModuleCache

0 commit comments

Comments
 (0)