rustc_target

Function relative_target_rustlib_path

source
pub fn relative_target_rustlib_path(
    sysroot: &Path,
    target_triple: &str,
) -> PathBuf
Expand description

Returns a rustlib path for this particular target, relative to the provided sysroot.

For example: target_sysroot_path("/usr", "x86_64-unknown-linux-gnu") => "lib*/rustlib/x86_64-unknown-linux-gnu".