()
| 397 | } |
| 398 | |
| 399 | fn find_rustc_codegen_spirv() -> PathBuf { |
| 400 | let filename = format!( |
| 401 | "{}rustc_codegen_spirv{}", |
| 402 | env::consts::DLL_PREFIX, |
| 403 | env::consts::DLL_SUFFIX |
| 404 | ); |
| 405 | for mut path in dylib_path() { |
| 406 | path.push(&filename); |
| 407 | if path.is_file() { |
| 408 | return path; |
| 409 | } |
| 410 | } |
| 411 | panic!("Could not find {filename} in library path"); |
| 412 | } |