Skip to content

Commit 1248ff1

Browse files
committed
Add first cut of functionality for rust-lang#58713: support for #[link(kind = "raw-dylib")].
This does not yet support #[link_name] attributes on functions, the #[link_ordinal] attribute, #[link(kind = "raw-dylib")] on extern blocks in bin crates, or stdcall functions on 32-bit x86.
1 parent d8d6a5a commit 1248ff1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/archive.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
254254
}
255255
}
256256
}
257+
258+
fn inject_dll_import_lib(
259+
&mut self,
260+
_lib_name: &str,
261+
_dll_imports: &[rustc_middle::middle::cstore::DllImport],
262+
_tmpdir: &rustc_data_structures::temp_dir::MaybeTempDir,
263+
) {
264+
bug!("injecting dll imports is not supported");
265+
}
257266
}
258267

259268
impl<'a> ArArchiveBuilder<'a> {

0 commit comments

Comments
 (0)