Expand description
A module for searching for libraries
Structs§
- File
Search - File
Search 🔒Candidate - This type stores
Box<str>instead ofPathBuffor the filename, because getting thefile_nameof aPathBufallocates, which is unnecessary. We have to go through the files a lot of times, so storing file name and the directory separately saves time and memory.
Functions§
- current_
dll_ 🔒path - default_
sysroot 🔒 - This function checks if sysroot is found using env::args().next(), and if it is not found, finds sysroot from current rustc_driver dll.
- make_
target_ bin_ path - Returns a path to the target’s
binfolder within itsrustlibpath in the sysroot. This is where binaries are usually installed, e.g. the self-contained linkers, lld-wrappers, LLVM tools, etc. - make_
target_ lib_ path