diff --git a/cargo-miri/bin.rs b/cargo-miri/bin.rs index 000a4d41cc5..85d72daadbd 100644 --- a/cargo-miri/bin.rs +++ b/cargo-miri/bin.rs @@ -338,7 +338,7 @@ fn setup(subcommand: MiriCommand) { let target = target.as_ref().unwrap_or(&host); // Now invoke xargo. let mut command = xargo_check(); - command.arg("build").arg("-q"); + command.arg("check").arg("-q"); command.arg("--target").arg(target); command.current_dir(&dir); command.env("XARGO_HOME", &dir);