Skip to content

Commit b8e6af4

Browse files
committed
fix setting the manifest path manually when using cargo miri
1 parent 4d767e1 commit b8e6af4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/cargo-miri.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ fn get_arg_flag_value(name: &str) -> Option<String> {
7575

7676
fn list_targets() -> impl Iterator<Item=cargo_metadata::Target> {
7777
// We need to get the manifest, and then the metadata, to enumerate targets.
78-
let manifest_path = get_arg_flag_value("--manifest-path").map(PathBuf::from);
78+
let manifest_path = get_arg_flag_value("--manifest-path").map(|m|
79+
Path::new(&m).canonicalize().unwrap()
80+
);
7981

8082
let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(
8183
manifest_path.as_ref().map(AsRef::as_ref),

0 commit comments

Comments
 (0)