rust/src/archive.rs

28 lines
785 B
Rust
Raw Normal View History

2020-05-10 09:54:30 -05:00
use std::path::{Path, PathBuf};
use rustc_codegen_ssa::back::archive::{
ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder, DEFAULT_OBJECT_READER,
};
use rustc_session::Session;
use rustc_session::cstore::DllImport;
2020-05-10 09:54:30 -05:00
pub(crate) struct ArArchiveBuilderBuilder;
2020-05-10 09:54:30 -05:00
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))
2020-05-10 09:54:30 -05:00
}
fn create_dll_import_lib(
&self,
_sess: &Session,
_lib_name: &str,
_dll_imports: &[DllImport],
_tmpdir: &Path,
_is_direct_dependency: bool,
) -> PathBuf {
unimplemented!("creating dll imports is not yet supported");
2020-05-10 09:54:30 -05:00
}
}