MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / find_rustc_codegen_nvvm

Function find_rustc_codegen_nvvm

crates/cuda_builder/src/lib.rs:329–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327}
328
329fn find_rustc_codegen_nvvm() -> PathBuf {
330 let filename = format!(
331 "{}rustc_codegen_nvvm{}",
332 env::consts::DLL_PREFIX,
333 env::consts::DLL_SUFFIX
334 );
335 for mut path in dylib_path() {
336 path.push(&filename);
337 if path.is_file() {
338 return path;
339 }
340 }
341 panic!("Could not find {} in library path", filename);
342}
343
344fn get_new_path_var() -> OsString {
345 let split_paths = env::var_os(dylib_path_envvar()).unwrap_or_default();

Callers 1

invoke_rustcFunction · 0.85

Calls 2

dylib_pathFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected