2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-24 05:42:12 +00:00
Files
build/bootstrap.bat
Nikita Kniazev 56d0293f1c Fix build.bat/bootstrap.bat exit code (#371)
1. cmd.exe quirk 1: `exit /b 1` sets error code `0` for **the process**, even though it sets `errorlevel` to `1`.
2. `bootstrap.bat` needs to check that `build.bat` succeded (cmd.exe quirk 2: `echo off` doesn't change `errorlevel`).
3. `build.bat` overrides exit code with call to `dir *.exe`.
4. `setlocal` will rollback `pushd` on exit (that also helps with Ctrl+C).
2024-04-21 08:21:51 -05:00

648 B