Enum llvmenv::entry::CMakeGenerator [−][src]
pub enum CMakeGenerator {
Platform,
Makefile,
Ninja,
VisualStudio,
VisualStudioWin64,
}
Expand description
Option for CMake Generators
- Official document: CMake Generators
use llvmenv::entry::CMakeGenerator;
use std::str::FromStr;
assert_eq!(CMakeGenerator::from_str("Makefile").unwrap(), CMakeGenerator::Makefile);
assert_eq!(CMakeGenerator::from_str("Ninja").unwrap(), CMakeGenerator::Ninja);
assert_eq!(CMakeGenerator::from_str("vs").unwrap(), CMakeGenerator::VisualStudio);
assert_eq!(CMakeGenerator::from_str("VisualStudio").unwrap(), CMakeGenerator::VisualStudio);
assert!(CMakeGenerator::from_str("MySuperBuilder").is_err());
Variants
Use platform default generator (without -G option)
Unix Makefile
Ninja generator
Visual Studio 15 2017
Visual Studio 15 2017 Win64
Implementations
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for CMakeGenerator
impl Send for CMakeGenerator
impl Sync for CMakeGenerator
impl Unpin for CMakeGenerator
impl UnwindSafe for CMakeGenerator
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more