File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -307,10 +307,17 @@ impl<'a> ArchiveBuilder for ArArchiveBuilder<'a> {
307
307
let file_name = String :: from_utf8 ( entry. name ( ) . to_vec ( ) )
308
308
. map_err ( |err| io:: Error :: new ( io:: ErrorKind :: InvalidData , err) ) ?;
309
309
if !skip ( & file_name) {
310
- self . entries . push ( (
311
- file_name. into_bytes ( ) ,
312
- ArchiveEntry :: FromArchive { archive_index, file_range : entry. file_range ( ) } ,
313
- ) ) ;
310
+ if entry. is_thin ( ) {
311
+ self . entries . push ( (
312
+ file_name. clone ( ) . into_bytes ( ) ,
313
+ ArchiveEntry :: File ( PathBuf :: from ( file_name) ) ,
314
+ ) ) ;
315
+ } else {
316
+ self . entries . push ( (
317
+ file_name. into_bytes ( ) ,
318
+ ArchiveEntry :: FromArchive { archive_index, file_range : entry. file_range ( ) } ,
319
+ ) ) ;
320
+ }
314
321
}
315
322
}
316
323
You can’t perform that action at this time.
0 commit comments