File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -951,13 +951,16 @@ impl Step for PlainSourceTarball {
951951 has_cargo_vendor |= line. starts_with ( "cargo-vendor " ) ;
952952 }
953953 if !has_cargo_vendor {
954- let mut cmd = Command :: new ( & builder. initial_cargo ) ;
955- cmd. arg ( "install" )
956- . arg ( "--force" )
954+ let mut cmd = builder. cargo (
955+ builder. compiler ( 0 , builder. config . build ) ,
956+ Mode :: Tool ,
957+ builder. config . build ,
958+ "install"
959+ ) ;
960+ cmd. arg ( "--force" )
957961 . arg ( "--debug" )
958962 . arg ( "--vers" ) . arg ( CARGO_VENDOR_VERSION )
959- . arg ( "cargo-vendor" )
960- . env ( "RUSTC" , & builder. initial_rustc ) ;
963+ . arg ( "cargo-vendor" ) ;
961964 if let Some ( dir) = builder. openssl_install_dir ( builder. config . build ) {
962965 builder. ensure ( native:: Openssl {
963966 target : builder. config . build ,
You can’t perform that action at this time.
0 commit comments