Expand description
This module serves two purposes:
- It is part of the
utils
module and used in other parts of bootstrap. - It is embedded inside bootstrap shims to avoid a dependency on the bootstrap library. Therefore, this module should never use any other bootstrap module. This reduces binary size and improves compilation time by minimizing linking time.
Functions§
- dylib_
path - Parses the
dylib_path_var()
environment variable, returning a list of paths that are members of this lookup path. - dylib_
path_ var - Returns the environment variable which the dynamic library lookup path resides in for this platform.
- exe
- Given an executable called
name
, return the filename for the executable for a particular target. - maybe_
dump - Writes the command invocation to a file if
DUMP_BOOTSTRAP_SHIMS
is set during bootstrap. - parse_
rustc_ stage - Parses the value of the “RUSTC_STAGE” environment variable and returns it as a
String
. This is the stage of the build compiler, which we are wrapping using a rustc/rustdoc wrapper. - parse_
rustc_ verbose - Parses the value of the “RUSTC_VERBOSE” environment variable and returns it as a
usize
. If it was not defined, returns 0 by default. - parse_
value_ from_ args - Finds
key
and returns its value from the given list of argumentsargs
.