We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3815fc0 commit c7be443Copy full SHA for c7be443
src/tools/miri/miri.bat
@@ -0,0 +1,10 @@
1
+:: This makes execution of ./miri on Linux and Windows the same.
2
+:: Windows will not execute the bash script, and select this.
3
+@echo off
4
+set MIRI_SCRIPT_TARGET_DIR=%0\..\miri-script\target
5
+cargo build %CARGO_EXTRA_FLAGS% -q --target-dir %MIRI_SCRIPT_TARGET_DIR% --manifest-path %0\..\miri-script\Cargo.toml
6
+
7
+:: Forwards all arguments to this file to the executable.
8
+:: We invoke the binary directly to avoid going through rustup, which would set some extra
9
+:: env vars that we do not want.
10
+%MIRI_SCRIPT_TARGET_DIR%\debug\miri-script %*
0 commit comments