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.
Trait Implementations§
impl Eq for Machine
impl StructuralPartialEq for Machine
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.