Skip to content

Commit 9b6358d

Browse files
committed
build: early exit on error
If build.ps1 fails, immediately exit rather than cleaning up. We may lose the error code in such situations.
1 parent a8d29e4 commit 9b6358d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-windows-toolchain.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
8181
-BuildType %CMAKE_BUILD_TYPE% ^
8282
%SkipPackagingArg% ^
8383
%TestArg% ^
84-
-Stage %PackageRoot%
84+
-Stage %PackageRoot% || (exit /b)
8585

8686
:: Clean up the module cache
8787
rd /s /q %LocalAppData%\clang\ModuleCache

0 commit comments

Comments
 (0)