From 146ef012c45fa3c8295ea91c05846a8580bb755a Mon Sep 17 00:00:00 2001 From: Nikita Smith Date: Sat, 9 May 2026 13:07:46 -0700 Subject: [PATCH] on error restore PATH --- run.bat | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/run.bat b/run.bat index cf69de5b..ec42fd94 100644 --- a/run.bat +++ b/run.bat @@ -62,23 +62,27 @@ for %%m in (%MODE_VALUES%) do for %%c in (%CC_VALUES%) do ( ) :: TODO: unblock asan - call build.bat meta %%c %%m raddbg raddbg_non_graphical || exit /b 1 + call build.bat meta %%c %%m raddbg raddbg_non_graphical || (endlocal exit /b 1) :: clang does not compile with asan in release mode because it runs out of memory if "%%c" equ "clang" ( if /i "%%m" equ "release" ( - call build.bat meta %%c %%m !TARGET_VALUES! || exit /b 1 + call build.bat no_meta %%c %%m !TARGET_VALUES! || (endlocal exit /b 1) ) else ( - call build.bat meta asan %%c %%m !TARGET_VALUES! || exit /b 1 + call build.bat asan no_meta %%c %%m !TARGET_VALUES! || (endlocal exit /b 1) ) ) else ( - call build.bat meta asan %%c %%m !TARGET_VALUES! || exit /b 1 + call build.bat asan no_meta %%c %%m !TARGET_VALUES! || (endlocal exit /b 1) ) if "%RUN_TORTURE%" equ "1" ( pushd build - torture %TORTURE_ARGS% || exit /b 1 + torture %TORTURE_ARGS% popd + if errorlevel 1 ( + endlocal + exit /b 1 + ) ) endlocal