We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f5ef73 + 0dab3d5 commit 079b53eCopy full SHA for 079b53e
src/bin/cargo-miri.rs
@@ -231,7 +231,14 @@ fn setup(ask_user: bool) {
231
} else {
232
println!("Installing xargo: `cargo install xargo -f`");
233
}
234
- if !Command::new("cargo").args(&["install", "xargo", "-f"]).status().unwrap().success() {
+
235
+ let mut cargo = if let Ok(val) = std::env::var("CARGO") {
236
+ // In rustc bootstrap, an env var tells us where to find cargo.
237
+ Command::new(val)
238
+ } else {
239
+ Command::new("cargo")
240
+ };
241
+ if !cargo.args(&["install", "xargo", "-f"]).status().unwrap().success() {
242
show_error(format!("Failed to install xargo"));
243
244
0 commit comments