This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1316,8 +1316,8 @@ impl Step for Extended {
13161316 tarballs. push ( mingw_installer. unwrap ( ) ) ;
13171317 }
13181318
1319- let mut tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1320- let work = tarball. persist_work_dir ( ) ;
1319+ let tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1320+ let work = tarball. work_dir ( ) ;
13211321 tarball. combine ( & tarballs) ;
13221322
13231323 let tmp = tmpdir ( builder) . join ( "combined-tarball" ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ pub(crate) struct Tarball<'a> {
9797
9898 include_target_in_component_name : bool ,
9999 is_preview : bool ,
100- delete_temp_dir : bool ,
101100}
102101
103102impl < ' a > Tarball < ' a > {
@@ -136,7 +135,6 @@ impl<'a> Tarball<'a> {
136135
137136 include_target_in_component_name : false ,
138137 is_preview : false ,
139- delete_temp_dir : true ,
140138 }
141139 }
142140
@@ -198,8 +196,7 @@ impl<'a> Tarball<'a> {
198196 self . builder . cp_r ( src. as_ref ( ) , & dest) ;
199197 }
200198
201- pub ( crate ) fn persist_work_dir ( & mut self ) -> PathBuf {
202- self . delete_temp_dir = false ;
199+ pub ( crate ) fn work_dir ( & self ) -> PathBuf {
203200 self . temp_dir . clone ( )
204201 }
205202
@@ -299,9 +296,6 @@ impl<'a> Tarball<'a> {
299296 cmd. arg ( "--compression-formats" ) . arg ( formats. join ( "," ) ) ;
300297 }
301298 self . builder . run ( & mut cmd) ;
302- if self . delete_temp_dir {
303- t ! ( std:: fs:: remove_dir_all( & self . temp_dir) ) ;
304- }
305299
306300 // Use either the first compression format defined, or "gz" as the default.
307301 let ext = self
You can’t perform that action at this time.
0 commit comments