Expand description
Various utility functions used throughout rustbuild.
Simple things like testing the various filesystem operations here and there, not a lot of interesting happenings here unfortunately.
Macros
- A helper macro to
unwrapa result except also print out details like:
Structs
Functions
- absolute 🔒Copied from
std::path::absoluteuntil it stabilizes. - Make a POSIX path absolute without changing its semantics.
- Adds a list of lookup paths to
cmd’s dynamic library lookup path. If the dylib_path_var is already set for this cmd, the old value will be overwritten! - Adds a list of lookup paths to
cmd’s link library lookup path. - Parses the
dylib_path_var()environment variable, returning a list of paths that are members of this lookup path. - Returns the environment variable which the dynamic library lookup path resides in for this platform.
- Given an executable called
name, return the filename for the executable for a particular target. - Returns
trueif the file name given looks like a debug info file - Returns
trueif the file name given looks like a dynamic library. - Returns the corresponding relative library directory that the compiler’s dylibs will be found in.
- Parses the
link_lib_path_var()environment variable, returning a list of paths that are members of this lookup path. - Returns the environment variable which the link library lookup path resides in for this platform.
- Returns the last-modified time for
path, or zero if it doesn’t exist. - Used for download caching
- Symlinks two directories, using junctions on Windows and normal symlinks on Unix.
- Returns an RAII structure that prints out how long it took to drop.
- Returns
trueifdstis up to date given that the file or files insrcare used to generate it.