Skip to content

Commit d05159f

Browse files
committed
switch to my xargo fork, because that one works with current libstd
1 parent 41d1602 commit d05159f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/bin/cargo-miri.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ fn xargo_version() -> Option<(u32, u32, u32)> {
133133
(split.next().expect("malformed `xargo --version` output: empty"),
134134
split.next().expect("malformed `xargo --version` output: not at least two words"))
135135
};
136-
if name != "xargo" {
136+
if name == "xargo" {
137+
// This is the upstream version which is currently broken, we need our fork.
138+
return None;
139+
}
140+
if name != "xargo-rj" {
137141
panic!("malformed `xargo --version` output: application name is not `xargo`");
138142
}
139143
let mut version_pieces = version.split('.');
@@ -183,11 +187,11 @@ fn setup(ask_user: bool) {
183187
let xargo = xargo_version();
184188
if xargo.map_or(true, |v| v < (0, 3, 13)) {
185189
if ask_user {
186-
ask("It seems you do not have a recent enough xargo installed. I will run `cargo install xargo -f`. Proceed?");
190+
ask("It seems you do not have a recent enough xargo installed. I will run `cargo install --git https://github.com/RalfJung/xargo -f`. Proceed?");
187191
} else {
188-
println!("Installing xargo: `cargo install xargo -f`");
192+
println!("Installing xargo: `cargo install --git https://github.com/RalfJung/xargo -f`");
189193
}
190-
if !Command::new("cargo").args(&["install", "xargo", "-f"]).status().unwrap().success() {
194+
if !Command::new("cargo").args(&["install", "--git", "https://github.com/RalfJung/xargo", "-f"]).status().unwrap().success() {
191195
show_error(format!("Failed to install xargo"));
192196
}
193197
}

0 commit comments

Comments
 (0)