Skip to content

Commit 8bd1281

Browse files
committed
Feat: hint to the user that they may have forgotten crate-type=lib
1 parent 9935eff commit 8bd1281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cuda_builder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ fn invoke_rustc(builder: &CudaBuilder) -> Result<PathBuf, CudaBuilderError> {
501501
let stdout = String::from_utf8(build.stdout).unwrap();
502502
let artifact = get_last_artifact(&stdout);
503503
if build.status.success() {
504-
Ok(artifact.expect("Artifact created when compilation succeeded"))
504+
Ok(artifact.expect("Artifact created when compilation succeeded (Did you forget to mark the crate-type as lib/rlib?)"))
505505
} else {
506506
Err(CudaBuilderError::BuildFailed)
507507
}

0 commit comments

Comments
 (0)