about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-04-16 18:31:43 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-07 16:56:35 +0000
commit322c2f6b1373a71e99e291f2be6f2c9b82890a02 (patch)
tree7ecc1dcdb6284a01f720bd12eab3eb9f6827166d
parent8620e85a1ce15e213b30db3f130f7360f4c7396d (diff)
downloadrust-322c2f6b1373a71e99e291f2be6f2c9b82890a02.tar.gz
rust-322c2f6b1373a71e99e291f2be6f2c9b82890a02.zip
Sync ar_archive_writer to LLVM 18.1.3
From LLVM 15.0.0-rc3. This adds support for COFF archives containing
Arm64EC object files and has various fixes for AIX big archive files.
-rw-r--r--src/archive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.rs b/src/archive.rs
index 414d3db1c51..26db93a7579 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -1,7 +1,7 @@
 use std::path::{Path, PathBuf};
 
 use rustc_codegen_ssa::back::archive::{
-    get_native_object_symbols, ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder,
+    ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder, DEFAULT_OBJECT_READER,
 };
 use rustc_session::Session;
 
@@ -9,7 +9,7 @@ pub(crate) struct ArArchiveBuilderBuilder;
 
 impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
     fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
-        Box::new(ArArchiveBuilder::new(sess, get_native_object_symbols))
+        Box::new(ArArchiveBuilder::new(sess, &DEFAULT_OBJECT_READER))
     }
 
     fn create_dll_import_lib(