File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
92
92
Ok ( ( ) )
93
93
}
94
94
95
- fn build ( mut self ) {
95
+ fn build ( mut self ) -> bool {
96
96
enum BuilderKind {
97
97
Bsd ( ar:: Builder < File > ) ,
98
98
Gnu ( ar:: GnuBuilder < File > ) ,
@@ -191,6 +191,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
191
191
)
192
192
} ;
193
193
194
+ let any_members = !entries. is_empty ( ) ;
195
+
194
196
// Add all files
195
197
for ( entry_name, data) in entries. into_iter ( ) {
196
198
let header = ar:: Header :: new ( entry_name, data. len ( ) as u64 ) ;
@@ -216,6 +218,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
216
218
self . sess . fatal ( & format ! ( "Ranlib exited with code {:?}" , status. code( ) ) ) ;
217
219
}
218
220
}
221
+
222
+ any_members
219
223
}
220
224
221
225
fn inject_dll_import_lib (
You can’t perform that action at this time.
0 commit comments