File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -469,13 +469,17 @@ pub fn rust_src(build: &Build) {
469
469
write_file ( & plain_dst_src. join ( "version" ) , build. rust_version ( ) . as_bytes ( ) ) ;
470
470
471
471
// Create plain source tarball
472
- let tarball = rust_src_location ( build) ;
472
+ let mut tarball = rust_src_location ( build) ;
473
+ tarball. set_extension ( "" ) ; // strip .gz
474
+ tarball. set_extension ( "" ) ; // strip .tar
473
475
if let Some ( dir) = tarball. parent ( ) {
474
476
t ! ( fs:: create_dir_all( dir) ) ;
475
477
}
476
- let mut cmd = Command :: new ( "tar" ) ;
477
- cmd. arg ( "-czf" ) . arg ( sanitize_sh ( & tarball) )
478
- . arg ( & plain_name)
478
+ let mut cmd = rust_installer ( build) ;
479
+ cmd. arg ( "tarball" )
480
+ . arg ( "--input" ) . arg ( & plain_name)
481
+ . arg ( "--output" ) . arg ( sanitize_sh ( & tarball) )
482
+ . arg ( "--work-dir=." )
479
483
. current_dir ( tmpdir ( build) ) ;
480
484
build. run ( & mut cmd) ;
481
485
You can’t perform that action at this time.
0 commit comments