Skip to main content

host_driver_paths

Function host_driver_paths 

Source
pub fn host_driver_paths(arch: &str) -> Vec<String>
Expand description

Host driver and system library directories for arch, in descending priority, filtered to those that exist.

arch takes the std::env::consts::ARCH spelling of the architecture the package targets. Multiarch directory names are derived from it, so a package is not handed x86_64 paths on aarch64.

The well-known directories come first, then any further directory the host’s ld.so.cache names. See [cache_dirs] for why the cache has to be read here rather than left to the loader.