File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ fn dylib_path() -> Vec<PathBuf> {
606
606
}
607
607
}
608
608
609
+ #[ cfg( feature = "compile_codegen" ) ]
609
610
fn find_rustc_codegen_spirv ( ) -> PathBuf {
610
611
let filename = format ! (
611
612
"{}rustc_codegen_spirv{}" ,
@@ -621,6 +622,13 @@ fn find_rustc_codegen_spirv() -> PathBuf {
621
622
panic ! ( "Could not find {filename} in library path" ) ;
622
623
}
623
624
625
+ #[ cfg( not( feature = "compile_codegen" ) ) ]
626
+ fn find_rustc_codegen_spirv ( ) -> PathBuf {
627
+ panic ! (
628
+ "Without feature `compile_codegen`, you need to set the path of the codegen dylib using `rustc_codegen_spirv_location(...)`"
629
+ ) ;
630
+ }
631
+
624
632
/// Joins strings together while ensuring none of the strings contain the separator.
625
633
// NOTE(eddyb) this intentionally consumes the `Vec` to limit accidental misuse.
626
634
fn join_checking_for_separators ( strings : Vec < impl Borrow < str > > , sep : & str ) -> String {
You can’t perform that action at this time.
0 commit comments