@@ -6,7 +6,7 @@ use std::path::{PathBuf, Path};
6
6
use std:: process:: Command ;
7
7
use std:: ops:: Not ;
8
8
9
- const XARGO_MIN_VERSION : ( u32 , u32 , u32 ) = ( 0 , 3 , 17 ) ;
9
+ const XARGO_MIN_VERSION : ( u32 , u32 , u32 ) = ( 0 , 3 , 18 ) ;
10
10
11
11
const CARGO_MIRI_HELP : & str = r#"Interprets bin crates and tests in Miri
12
12
@@ -266,7 +266,7 @@ fn setup(ask_user: bool) {
266
266
show_error ( format ! ( "Your xargo is too old; please upgrade to the latest version" ) )
267
267
}
268
268
let mut cmd = cargo ( ) ;
269
- cmd. args ( & [ "install" , "xargo" , "-f " ] ) ;
269
+ cmd. args ( & [ "install" , "-f" , "--git" , "https://github.com/Aaron1011/ xargo", "--branch" , "feature/cargo-mode "] ) ;
270
270
ask_to_run ( cmd, ask_user, "install a recent enough xargo" ) ;
271
271
}
272
272
@@ -294,6 +294,7 @@ fn setup(ask_user: bool) {
294
294
// The interesting bit: Xargo.toml
295
295
File :: create ( dir. join ( "Xargo.toml" ) ) . unwrap ( )
296
296
. write_all ( br#"
297
+ cargo_mode = "check"
297
298
[dependencies.std]
298
299
default_features = false
299
300
# We need the `panic_unwind` feature because we use the `unwind` panic strategy.
@@ -323,7 +324,7 @@ path = "lib.rs"
323
324
// that `cargo check` has exactly the behavior that we want:
324
325
// it emits crate metadata (including MIR) without running any
325
326
// codegen.
326
- command. arg ( "check" ) . arg ( "-q " ) ;
327
+ command. arg ( "check" ) . arg ( "-v " ) ;
327
328
command. current_dir ( & dir) ;
328
329
command. env ( "RUSTFLAGS" , miri:: miri_default_args ( ) . join ( " " ) ) ;
329
330
command. env ( "XARGO_HOME" , dir. to_str ( ) . unwrap ( ) ) ;
0 commit comments