diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2022-07-01 13:01:41 -0700 |
|---|---|---|
| committer | Daniel Paoliello <danpao@microsoft.com> | 2022-07-22 09:55:14 -0700 |
| commit | 1f33785ed4a4774c5d68c78a13a24f9faf0dac55 (patch) | |
| tree | a31e3d8bef4f30ead6bfbbb26940f2b9e137d2a8 /compiler/rustc_codegen_gcc | |
| parent | 144227dae949fb98896a2ba077d8fe7f36c3238e (diff) | |
| download | rust-1f33785ed4a4774c5d68c78a13a24f9faf0dac55.tar.gz rust-1f33785ed4a4774c5d68c78a13a24f9faf0dac55.zip | |
Enable raw-dylib for binaries
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/archive.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/archive.rs b/compiler/rustc_codegen_gcc/src/archive.rs index 411ec27139e..21f62a6b009 100644 --- a/compiler/rustc_codegen_gcc/src/archive.rs +++ b/compiler/rustc_codegen_gcc/src/archive.rs @@ -4,7 +4,6 @@ use std::path::{Path, PathBuf}; use rustc_codegen_ssa::back::archive::ArchiveBuilder; use rustc_session::Session; -use rustc_data_structures::temp_dir::MaybeTempDir; use rustc_session::cstore::DllImport; struct ArchiveConfig<'a> { @@ -177,7 +176,16 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> { any_members } - fn inject_dll_import_lib(&mut self, _lib_name: &str, _dll_imports: &[DllImport], _tmpdir: &MaybeTempDir) { + fn sess(&self) -> &Session { + self.config.sess + } + + fn create_dll_import_lib( + _sess: &Session, + _lib_name: &str, + _dll_imports: &[DllImport], + _tmpdir: &Path, + ) -> PathBuf { unimplemented!(); } } |
