about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 13:52:56 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-13 13:53:14 +0000
commitf5c3195e92d436e49132d193210bd268901f6fa1 (patch)
tree4e7f68d30b995807d65b698d9036a89a95b8d0ba
parent96fa075225cce2d7af090256c90c2d2bc5a0ccda (diff)
downloadrust-f5c3195e92d436e49132d193210bd268901f6fa1.tar.gz
rust-f5c3195e92d436e49132d193210bd268901f6fa1.zip
Nicer error message when using raw-dylib
cc rust-lang/rustc_codegen_cranelift#1510
-rw-r--r--src/archive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.rs b/src/archive.rs
index 414d3db1c51..3f23e0d9e04 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -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");
     }
 }