()
| 513 | } |
| 514 | |
| 515 | fn find_rustc_codegen_spirv() -> PathBuf { |
| 516 | let filename = format!( |
| 517 | "{}rustc_codegen_spirv{}", |
| 518 | env::consts::DLL_PREFIX, |
| 519 | env::consts::DLL_SUFFIX |
| 520 | ); |
| 521 | for mut path in dylib_path() { |
| 522 | path.push(&filename); |
| 523 | if path.is_file() { |
| 524 | return path; |
| 525 | } |
| 526 | } |
| 527 | panic!("Could not find {filename} in library path"); |
| 528 | } |
| 529 | |
| 530 | /// Joins strings together while ensuring none of the strings contain the separator. |
| 531 | // NOTE(eddyb) this intentionally consumes the `Vec` to limit accidental misuse. |
no test coverage detected