Skip to content

Commit

Permalink
Nicer error message when using raw-dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jul 13, 2024
1 parent ce40ce4 commit 31326f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {

fn create_dll_import_lib(
&self,
_sess: &Session,
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");
sess.dcx().fatal("raw-dylib is not yet supported by rustc_codegen_cranelift");
}
}

0 comments on commit 31326f6

Please sign in to comment.