about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-01-14 09:54:48 -0500
committerAntoni Boucher <bouanto@zoho.com>2025-01-14 09:54:48 -0500
commit232d8a4fc090c0401502a8b385b52d6fb8577381 (patch)
tree026bd5f81e1b5fc13b1b4d998455755cd2135ead
parentf8b89a3d05e995bd293aaac35d97f4b18b54e8fe (diff)
parent59a81c2ca1edc88ad3ac4b27a8e03977ffb8e73a (diff)
downloadrust-232d8a4fc090c0401502a8b385b52d6fb8577381.tar.gz
rust-232d8a4fc090c0401502a8b385b52d6fb8577381.zip
Merge branch 'master' into sync_from_rust_2025_01_14
-rw-r--r--src/archive.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/archive.rs b/src/archive.rs
new file mode 100644
index 00000000000..0cee05f1cea
--- /dev/null
+++ b/src/archive.rs
@@ -0,0 +1,24 @@
+use std::path::Path;
+
+use rustc_codegen_ssa::back::archive::{
+    ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder, DEFAULT_OBJECT_READER,
+};
+use rustc_session::Session;
+
+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, &DEFAULT_OBJECT_READER))
+    }
+
+    fn create_dll_import_lib(
+        &self,
+        _sess: &Session,
+        _lib_name: &str,
+        _import_name_and_ordinal_vector: Vec<(String, Option<u16>)>,
+        _output_path: &Path,
+    ) {
+        unimplemented!("creating dll imports is not yet supported");
+    }
+}