pub enum CompilerFamily {
Gcc,
Clang,
Msvc,
Rustc,
Rustfmt,
}Expand description
Supported compiler families.
Variants§
Gcc
GCC (gcc, g++)
Clang
Clang (clang, clang++)
Msvc
MSVC (cl.exe)
Rustc
Rust compiler (rustc)
Rustfmt
Rust formatter (rustfmt) — not a compiler, but cacheable as a tool.
Implementations§
Source§impl CompilerFamily
impl CompilerFamily
Sourcepub fn supports_depfile(&self) -> bool
pub fn supports_depfile(&self) -> bool
Whether this compiler supports -MD -MF for depfile generation.
MSVC uses /showIncludes instead. Rustc uses --emit=dep-info.
Sourcepub fn pch_extension(&self) -> Option<&'static str>
pub fn pch_extension(&self) -> Option<&'static str>
Default PCH output extension (without dot) for this compiler family.
Returns None for MSVC (uses /Yc + /Fp mechanism instead), Rustc, and Rustfmt.
Sourcepub fn is_formatter(&self) -> bool
pub fn is_formatter(&self) -> bool
Whether this is a formatter tool (not a compiler).
Trait Implementations§
Source§impl Clone for CompilerFamily
impl Clone for CompilerFamily
Source§fn clone(&self) -> CompilerFamily
fn clone(&self) -> CompilerFamily
Returns a duplicate of the value. Read more
1.0.0 · 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 CompilerFamily
impl Debug for CompilerFamily
Source§impl PartialEq for CompilerFamily
impl PartialEq for CompilerFamily
impl Copy for CompilerFamily
impl Eq for CompilerFamily
impl StructuralPartialEq for CompilerFamily
Auto Trait Implementations§
impl Freeze for CompilerFamily
impl RefUnwindSafe for CompilerFamily
impl Send for CompilerFamily
impl Sync for CompilerFamily
impl Unpin for CompilerFamily
impl UnsafeUnpin for CompilerFamily
impl UnwindSafe for CompilerFamily
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