Module rustc_session::filesearch
source · Expand description
A module for searching for libraries
Structs§
Functions§
- This function checks if sysroot is found using env::args().next(), and if it is not found, finds sysroot from current rustc_driver dll.
- Returns a path to the target’s
bin
folder within itsrustlib
path in the sysroot. This is where binaries are usually installed, e.g. the self-contained linkers, lld-wrappers, LLVM tools, etc. - Returns the provided sysroot or calls
get_or_default_sysroot
if it’s none. Panics ifget_or_default_sysroot
returns an error.