File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
133
133
}
134
134
}
135
135
// Detect the target directory if it's not specified via `--target-dir`.
136
+ // (`cargo metadata` does not support `--target-dir`, that's why we have to handle this ourselves.)
136
137
let target_dir = target_dir. get_or_insert_with ( || metadata. target_directory . clone ( ) ) ;
137
138
// Set `--target-dir` to `miri` inside the original target directory.
138
139
target_dir. push ( "miri" ) ;
Original file line number Diff line number Diff line change @@ -237,6 +237,8 @@ fn cargo_extra_flags() -> Vec<String> {
237
237
flags. push ( manifest) ;
238
238
}
239
239
240
+ // Forwarding `--target-dir` would make sense, but `cargo metadata` does not support that flag.
241
+
240
242
flags
241
243
}
242
244
You can’t perform that action at this time.
0 commit comments