Nicer error message when using raw-dylib

cc rust-lang/rustc_codegen_cranelift#1510
This commit is contained in:
bjorn3 2024-07-13 13:52:56 +00:00
parent 96fa075225
commit f5c3195e92

View File

@ -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");
}
}