@@ -27,7 +27,6 @@ pub struct LlvmArchiveBuilder<'a> {
2727 config : ArchiveConfig < ' a > ,
2828 removals : Vec < String > ,
2929 additions : Vec < Addition > ,
30- should_update_symbols : bool ,
3130 src_archive : Option < Option < ArchiveRO > > ,
3231}
3332
@@ -75,7 +74,6 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
7574 config,
7675 removals : Vec :: new ( ) ,
7776 additions : Vec :: new ( ) ,
78- should_update_symbols : false ,
7977 src_archive : None ,
8078 }
8179 }
@@ -129,12 +127,6 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
129127 . push ( Addition :: File { path : file. to_path_buf ( ) , name_in_archive : name. to_owned ( ) } ) ;
130128 }
131129
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-
138130 /// Combine the provided files, rlibs, and native libraries into a single
139131 /// `Archive`.
140132 fn build ( mut self ) {
@@ -313,7 +305,6 @@ impl<'a> LlvmArchiveBuilder<'a> {
313305 let mut members = Vec :: new ( ) ;
314306
315307 let dst = CString :: new ( self . config . dst . to_str ( ) . unwrap ( ) ) ?;
316- let should_update_symbols = self . should_update_symbols ;
317308
318309 unsafe {
319310 if let Some ( archive) = self . src_archive ( ) {
@@ -385,7 +376,7 @@ impl<'a> LlvmArchiveBuilder<'a> {
385376 dst. as_ptr ( ) ,
386377 members. len ( ) as libc:: size_t ,
387378 members. as_ptr ( ) as * const & _ ,
388- should_update_symbols ,
379+ true ,
389380 kind,
390381 ) ;
391382 let ret = if r. into_result ( ) . is_err ( ) {
0 commit comments