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

Function dylib_path_envvar

crates/spirv-builder/src/lib.rs:499–507  ·  view source on GitHub ↗

https://github.com/rust-lang/cargo/blob/1857880b5124580c4aeb4e8bc5f1198f491d61b1/src/cargo/util/paths.rs#L29-L52

()

Source from the content-addressed store, hash-verified

497
498// https://github.com/rust-lang/cargo/blob/1857880b5124580c4aeb4e8bc5f1198f491d61b1/src/cargo/util/paths.rs#L29-L52
499fn dylib_path_envvar() -> &'static str {
500 if cfg!(windows) {
501 "PATH"
502 } else if cfg!(target_os = "macos") {
503 "DYLD_FALLBACK_LIBRARY_PATH"
504 } else {
505 "LD_LIBRARY_PATH"
506 }
507}
508fn dylib_path() -> Vec<PathBuf> {
509 match env::var_os(dylib_path_envvar()) {
510 Some(var) => env::split_paths(&var).collect(),

Callers 1

dylib_pathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected