Skip to content

Commit 7e9ceb2

Browse files
committed
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.
1 parent 1728314 commit 7e9ceb2

File tree

1 file changed

+1
-1
lines changed
  • crates/spirv-builder/src

1 file changed

+1
-1
lines changed

crates/spirv-builder/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
886886
get_sole_artifact(&stdout).ok_or_else(|| {
887887
eprintln!("--- build output ---\n{stdout}");
888888
panic!(
889-
"`{ARTIFACT_SUFFIX}` artifact not found in (supposedly successful) build output (see above)"
889+
"`{ARTIFACT_SUFFIX}` artifact not found in (supposedly successful) build output (see above). Verify that `crate-type` is set correctly"
890890
);
891891
})
892892
} else {

0 commit comments

Comments
 (0)