Fix miri.bat not bailing early on error
This commit is contained in:
parent
c414c08da3
commit
28c10d6f22
1 changed files with 4 additions and 1 deletions
|
|
@ -2,7 +2,10 @@
|
|||
:: Windows will not execute the bash script, and select this.
|
||||
@echo off
|
||||
set MIRI_SCRIPT_TARGET_DIR=%0\..\miri-script\target
|
||||
cargo build %CARGO_EXTRA_FLAGS% -q --target-dir %MIRI_SCRIPT_TARGET_DIR% --manifest-path %0\..\miri-script\Cargo.toml
|
||||
|
||||
:: If any other steps are added, the "|| exit /b" must be appended to early
|
||||
:: return from the script. If not, it will continue execution.
|
||||
cargo build %CARGO_EXTRA_FLAGS% -q --target-dir %MIRI_SCRIPT_TARGET_DIR% --manifest-path %0\..\miri-script\Cargo.toml || exit /b
|
||||
|
||||
:: Forwards all arguments to this file to the executable.
|
||||
:: We invoke the binary directly to avoid going through rustup, which would set some extra
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue