Skip to content

Commit 377168a

Browse files
committed
Remove target detection
1 parent ebc5270 commit 377168a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/bin/cargo-miri.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -518,16 +518,6 @@ fn in_cargo_miri() {
518518
_ => continue,
519519
}
520520

521-
let target = match get_arg_flag_value("--target") {
522-
Some(target) => target,
523-
None => {
524-
let target = host_triple();
525-
cmd.arg("--target").arg(&target);
526-
target
527-
}
528-
};
529-
530-
531521
// Add user-defined args until first `--`.
532522
while let Some(arg) = args.next() {
533523
if arg == "--" {
@@ -537,8 +527,6 @@ fn in_cargo_miri() {
537527
}
538528

539529
let args_vec: Vec<String> = args.collect();
540-
cmd.env("MIRI_MAGIC_TARGET", target.clone());
541-
//cmd.env("MIRI_MAGIC_DIR", root_dir.clone());
542530
cmd.env("MIRI_MAGIC_ARGS", serde_json::to_string(&args_vec).expect("failed to serialize args"));
543531

544532
// Add `--` (to end the `cargo` flags), and then the user flags. We add markers around the

0 commit comments

Comments
 (0)