pub struct CompilerCapabilities {
pub gcc_style_flags: Capability,
pub msvc_style_flags: Capability,
pub depfile_mmd_mf: Capability,
pub std_flag: Capability,
pub cxx_standard_17: Capability,
pub c_standard_11: Capability,
}Expand description
Capability set for a C/C++ compiler. Every field is decided during detection so the planner can compare its required set against the resolved set without re-running parsing logic.
Fields§
§gcc_style_flags: CapabilityAccepts GCC-style -O<n>, -DNAME, -Idir, -c, -o.
msvc_style_flags: CapabilityAccepts MSVC-style /O<n>, /DNAME, /I dir. Detection-
only; the current backend never emits these.
depfile_mmd_mf: CapabilityAccepts -MMD -MF <file> to write a make-style depfile.
std_flag: CapabilityAccepts -std=c++NN.
cxx_standard_17: CapabilityAccepts -std=c++17 specifically (the planner’s current
fixed C++ standard).
c_standard_11: CapabilityAccepts -std=c11 specifically (the planner’s current fixed
C standard). For MSVC this is the /std:c11 switch, which is
only available from VS2019 16.8 (cl 19.28) onward.
Trait Implementations§
Source§impl Clone for CompilerCapabilities
impl Clone for CompilerCapabilities
Source§fn clone(&self) -> CompilerCapabilities
fn clone(&self) -> CompilerCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilerCapabilities
impl Debug for CompilerCapabilities
Source§impl<'de> Deserialize<'de> for CompilerCapabilities
impl<'de> Deserialize<'de> for CompilerCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompilerCapabilities
Source§impl PartialEq for CompilerCapabilities
impl PartialEq for CompilerCapabilities
Source§fn eq(&self, other: &CompilerCapabilities) -> bool
fn eq(&self, other: &CompilerCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerCapabilities
impl Serialize for CompilerCapabilities
impl StructuralPartialEq for CompilerCapabilities
Auto Trait Implementations§
impl Freeze for CompilerCapabilities
impl RefUnwindSafe for CompilerCapabilities
impl Send for CompilerCapabilities
impl Sync for CompilerCapabilities
impl Unpin for CompilerCapabilities
impl UnsafeUnpin for CompilerCapabilities
impl UnwindSafe for CompilerCapabilities
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.