pub struct Machine {
pub host: Option<Triple>,
pub sysroot: Option<PathBuf>,
pub sdk: Option<PathBuf>,
pub include: Option<String>,
}Expand description
What the machine says about itself, and what the command line said over the top of it.
Separated from the lookup so that the lookup is a function of its arguments and can be
tested for a platform the test is not running on. Everything here is read once, in
system_dirs, which is the only place that talks to the environment.
Fields§
§host: Option<Triple>The triple of the machine the compiler is running on, when it is one we know.
sysroot: Option<PathBuf>--sysroot, which prefixes the configured directories, or -isysroot, which is the
spelling Apple’s tools use and which means the same thing to us.
sdk: Option<PathBuf>The SDK to compile against on an Apple platform, once it has been found.
include: Option<String>INCLUDE, which is how every Windows toolchain says where its headers are. The
entries are separated by ;, which is a path separator there and a legal character in
a file name nowhere.