2020-05-10 09:54:30 -05:00
|
|
|
use std::path::{Path, PathBuf};
|
|
|
|
|
2022-05-28 05:43:51 -05:00
|
|
|
use rustc_codegen_ssa::back::archive::{
|
2024-04-16 13:31:43 -05:00
|
|
|
ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder, DEFAULT_OBJECT_READER,
|
2022-05-28 05:43:51 -05:00
|
|
|
};
|
2020-11-13 20:02:03 -06:00
|
|
|
use rustc_session::Session;
|
2021-09-17 16:19:25 -05:00
|
|
|
|
2020-11-13 20:02:03 -06:00
|
|
|
use rustc_session::cstore::DllImport;
|
2020-05-10 09:54:30 -05:00
|
|
|
|
2022-05-28 05:43:51 -05:00
|
|
|
pub(crate) struct ArArchiveBuilderBuilder;
|
2020-05-10 09:54:30 -05:00
|
|
|
|
2022-07-28 04:07:49 -05:00
|
|
|
impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
|
2024-02-26 08:37:04 -06:00
|
|
|
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
|
2024-04-16 13:31:43 -05:00
|
|
|
Box::new(ArArchiveBuilder::new(sess, &DEFAULT_OBJECT_READER))
|
2020-05-10 09:54:30 -05:00
|
|
|
}
|
|
|
|
|
2022-07-28 04:07:49 -05:00
|
|
|
fn create_dll_import_lib(
|
|
|
|
&self,
|
|
|
|
_sess: &Session,
|
|
|
|
_lib_name: &str,
|
|
|
|
_dll_imports: &[DllImport],
|
|
|
|
_tmpdir: &Path,
|
2022-10-12 16:44:01 -05:00
|
|
|
_is_direct_dependency: bool,
|
2022-07-28 04:07:49 -05:00
|
|
|
) -> PathBuf {
|
2022-05-28 05:43:51 -05:00
|
|
|
unimplemented!("creating dll imports is not yet supported");
|
2020-05-10 09:54:30 -05:00
|
|
|
}
|
|
|
|
}
|