File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ fn get_arg_flag_value(name: &str) -> Option<String> {
94
94
95
95
/// Returns the path to the `miri` binary
96
96
fn find_miri ( ) -> PathBuf {
97
+ if let Some ( path) = env:: var_os ( "MIRI" ) {
98
+ return path. into ( ) ;
99
+ }
97
100
let mut path = std:: env:: current_exe ( ) . expect ( "current executable path invalid" ) ;
98
101
path. set_file_name ( "miri" ) ;
99
102
path
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use colored::*;
9
9
use compiletest_rs as compiletest;
10
10
11
11
fn miri_path ( ) -> PathBuf {
12
- PathBuf :: from ( option_env ! ( "MIRI_PATH " ) . unwrap_or ( env ! ( "CARGO_BIN_EXE_miri" ) ) )
12
+ PathBuf :: from ( option_env ! ( "MIRI " ) . unwrap_or ( env ! ( "CARGO_BIN_EXE_miri" ) ) )
13
13
}
14
14
15
15
fn run_tests ( mode : & str , path : & str , target : & str ) {
You can’t perform that action at this time.
0 commit comments