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

Function find_rustc_codegen_spirv

tests/src/main.rs:399–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397}
398
399fn 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}

Callers 1

mainFunction · 0.70

Calls 1

dylib_pathFunction · 0.70

Tested by

no test coverage detected