MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / find_rustc_codegen_spirv

Function find_rustc_codegen_spirv

crates/spirv-builder/src/lib.rs:515–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513}
514
515fn 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.

Callers 1

invoke_rustcFunction · 0.70

Calls 1

dylib_pathFunction · 0.70

Tested by

no test coverage detected