Skip to content

Commit f5c3195

Browse files
committed
Nicer error message when using raw-dylib
cc rust-lang/rustc_codegen_cranelift#1510
1 parent 96fa075 commit f5c3195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/archive.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
1414

1515
fn create_dll_import_lib(
1616
&self,
17-
_sess: &Session,
17+
sess: &Session,
1818
_lib_name: &str,
1919
_dll_imports: &[rustc_session::cstore::DllImport],
2020
_tmpdir: &Path,
2121
_is_direct_dependency: bool,
2222
) -> PathBuf {
23-
unimplemented!("creating dll imports is not yet supported");
23+
sess.dcx().fatal("raw-dylib is not yet supported by rustc_codegen_cranelift");
2424
}
2525
}

0 commit comments

Comments
 (0)