mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			780 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			780 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::path::{Path, PathBuf};
 | |
| 
 | |
| use rustc_codegen_ssa::back::archive::{
 | |
|     get_native_object_symbols, ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder,
 | |
| };
 | |
| 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> + 'a> {
 | |
|         Box::new(ArArchiveBuilder::new(sess, get_native_object_symbols))
 | |
|     }
 | |
| 
 | |
|     fn create_dll_import_lib(
 | |
|         &self,
 | |
|         _sess: &Session,
 | |
|         _lib_name: &str,
 | |
|         _dll_imports: &[rustc_session::cstore::DllImport],
 | |
|         _tmpdir: &Path,
 | |
|         _is_direct_dependency: bool,
 | |
|     ) -> PathBuf {
 | |
|         unimplemented!("creating dll imports is not yet supported");
 | |
|     }
 | |
| }
 | 
