@@ -27,7 +27,6 @@ pub struct LlvmArchiveBuilder<'a> {
27
27
config : ArchiveConfig < ' a > ,
28
28
removals : Vec < String > ,
29
29
additions : Vec < Addition > ,
30
- should_update_symbols : bool ,
31
30
src_archive : Option < Option < ArchiveRO > > ,
32
31
}
33
32
@@ -75,7 +74,6 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
75
74
config,
76
75
removals : Vec :: new ( ) ,
77
76
additions : Vec :: new ( ) ,
78
- should_update_symbols : false ,
79
77
src_archive : None ,
80
78
}
81
79
}
@@ -129,12 +127,6 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
129
127
. push ( Addition :: File { path : file. to_path_buf ( ) , name_in_archive : name. to_owned ( ) } ) ;
130
128
}
131
129
132
- /// Indicate that the next call to `build` should update all symbols in
133
- /// the archive (equivalent to running 'ar s' over it).
134
- fn update_symbols ( & mut self ) {
135
- self . should_update_symbols = true ;
136
- }
137
-
138
130
/// Combine the provided files, rlibs, and native libraries into a single
139
131
/// `Archive`.
140
132
fn build ( mut self ) {
@@ -313,7 +305,6 @@ impl<'a> LlvmArchiveBuilder<'a> {
313
305
let mut members = Vec :: new ( ) ;
314
306
315
307
let dst = CString :: new ( self . config . dst . to_str ( ) . unwrap ( ) ) ?;
316
- let should_update_symbols = self . should_update_symbols ;
317
308
318
309
unsafe {
319
310
if let Some ( archive) = self . src_archive ( ) {
@@ -385,7 +376,7 @@ impl<'a> LlvmArchiveBuilder<'a> {
385
376
dst. as_ptr ( ) ,
386
377
members. len ( ) as libc:: size_t ,
387
378
members. as_ptr ( ) as * const & _ ,
388
- should_update_symbols ,
379
+ true ,
389
380
kind,
390
381
) ;
391
382
let ret = if r. into_result ( ) . is_err ( ) {
0 commit comments