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

Function dylib_path_envvar

tests/src/main.rs:382–390  ·  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

380
381// https://github.com/rust-lang/cargo/blob/1857880b5124580c4aeb4e8bc5f1198f491d61b1/src/cargo/util/paths.rs#L29-L52
382fn dylib_path_envvar() -> &'static str {
383 if cfg!(windows) {
384 "PATH"
385 } else if cfg!(target_os = "macos") {
386 "DYLD_FALLBACK_LIBRARY_PATH"
387 } else {
388 "LD_LIBRARY_PATH"
389 }
390}
391
392fn dylib_path() -> Vec<PathBuf> {
393 match env::var_os(dylib_path_envvar()) {

Callers 1

dylib_pathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected