File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 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> {
606606 }
607607}
608608
609+ #[ cfg( feature = "compile_codegen" ) ]
609610fn find_rustc_codegen_spirv ( ) -> PathBuf {
610611 let filename = format ! (
611612 "{}rustc_codegen_spirv{}" ,
@@ -621,6 +622,13 @@ fn find_rustc_codegen_spirv() -> PathBuf {
621622 panic ! ( "Could not find {filename} in library path" ) ;
622623}
623624
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+
624632/// Joins strings together while ensuring none of the strings contain the separator.
625633// NOTE(eddyb) this intentionally consumes the `Vec` to limit accidental misuse.
626634fn join_checking_for_separators ( strings : Vec < impl Borrow < str > > , sep : & str ) -> String {
You can’t perform that action at this time.
0 commit comments