Skip to content

Commit 27df340

Browse files
authored
Update build-windows-toolchain.bat
Report errors properly
1 parent 98d0197 commit 27df340

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build-windows-toolchain.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
8383
%TestArg% ^
8484
-Stage %StagePath%
8585

86+
:: Fail if powershell.exe exited with error code 1 or above (failure)
87+
if ErrorLevel 1 exit /b 1
88+
8689
:: Clean up the module cache
8790
rd /s /q %LocalAppData%\clang\ModuleCache
8891

0 commit comments

Comments
 (0)