From 07b5acff0a1789e5d5b8109bd01de3af94f99d07 Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Sun, 16 Mar 2025 18:40:53 -0400 Subject: [PATCH] Add a message to suggest checking crate-type This was my issue and it was unclear the cause. I am not sure if this is the only case where this error shows up, hence the wording. Open to better wording if you have it. --- crates/spirv-builder/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/spirv-builder/src/lib.rs b/crates/spirv-builder/src/lib.rs index 67d5c9b66e..a14fca7ab4 100644 --- a/crates/spirv-builder/src/lib.rs +++ b/crates/spirv-builder/src/lib.rs @@ -886,7 +886,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result { get_sole_artifact(&stdout).ok_or_else(|| { eprintln!("--- build output ---\n{stdout}"); panic!( - "`{ARTIFACT_SUFFIX}` artifact not found in (supposedly successful) build output (see above)" + "`{ARTIFACT_SUFFIX}` artifact not found in (supposedly successful) build output (see above). Verify that `crate-type` is set correctly" ); }) } else {