@@ -100,8 +100,8 @@ fn cargo() -> Command {
100
100
}
101
101
}
102
102
103
- fn xargo ( ) -> Command {
104
- if let Ok ( val) = std:: env:: var ( "XARGO " ) {
103
+ fn xargo_check ( ) -> Command {
104
+ if let Ok ( val) = std:: env:: var ( "XARGO_CHECK " ) {
105
105
// Bootstrap tells us where to find xargo
106
106
Command :: new ( val)
107
107
} else {
@@ -202,7 +202,7 @@ fn test_sysroot_consistency() {
202
202
}
203
203
204
204
fn xargo_version ( ) -> Option < ( u32 , u32 , u32 ) > {
205
- let out = xargo ( ) . arg ( "--version" ) . output ( ) . ok ( ) ?;
205
+ let out = xargo_check ( ) . arg ( "--version" ) . output ( ) . ok ( ) ?;
206
206
if !out. status . success ( ) {
207
207
return None ;
208
208
}
@@ -280,7 +280,7 @@ fn setup(ask_user: bool) {
280
280
281
281
// First, we need xargo.
282
282
if xargo_version ( ) . map_or ( true , |v| v < XARGO_MIN_VERSION ) {
283
- if std:: env:: var ( "XARGO " ) . is_ok ( ) {
283
+ if std:: env:: var ( "XARGO_CHECK " ) . is_ok ( ) {
284
284
// The user manually gave us a xargo binary; don't do anything automatically.
285
285
show_error ( format ! ( "Your xargo is too old; please upgrade to the latest version" ) )
286
286
}
@@ -376,7 +376,7 @@ path = "lib.rs"
376
376
// Prepare xargo invocation.
377
377
let target = get_arg_flag_value ( "--target" ) ;
378
378
let print_sysroot = !ask_user && has_arg_flag ( "--print-sysroot" ) ; // whether we just print the sysroot path
379
- let mut command = xargo ( ) ;
379
+ let mut command = xargo_check ( ) ;
380
380
command. arg ( "build" ) . arg ( "-q" ) ;
381
381
command. current_dir ( & dir) ;
382
382
command. env ( "RUSTFLAGS" , miri:: miri_default_args ( ) . join ( " " ) ) ;
0 commit comments