fn detect_compiler() -> CCompiler {
    match which::which("msvc") {
        Ok(_) => CCompiler::MSVC,
        Err(_) => match which::which("gcc") {
            Ok(_) => CCompiler::GCC,
            Err(_) => match which::which("clang") {
                Ok(_) => CCompiler::Clang,
                Err(_) => match which::which("icc") {
                    Ok(_) => CCompiler::ICC,
                    Err(_) => panic!("No C compiler detected! Expect one of GCC, ICC, Clang"),
                },
            },
        },
    }
}
/// Detect C compiler, default to GCC over Clang.
Detect C compiler, default to GCC over Clang.
Detect C compiler default to GCC over Clang .
fn detect_compiler() -> CCompiler {
    match which::which("msvc") {
        Ok(_) => CCompiler::MSVC,
        Err(_) => match which::which("gcc") {
            Ok(_) => CCompiler::GCC,
            Err(_) => match which::which("clang") {
                Ok(_) => CCompiler::Clang,
                Err(_) => match which::which("icc") {
                    Ok(_) => CCompiler::ICC,
                    Err(_) => panic!("No C compiler detected! Expect one of GCC, ICC, Clang"),
                },
            },
        },
    }
}
fn detect_compiler ( ) -> CCompiler { match which :: which ( " " ) { Ok ( _ ) => CCompiler :: MSVC , Err ( _ ) => match which :: which ( " " ) { Ok ( _ ) => CCompiler :: GCC , Err ( _ ) => match which :: which ( " " ) { Ok ( _ ) => CCompiler :: Clang , Err ( _ ) => match which :: which ( " " ) { Ok ( _ ) => CCompiler :: ICC , Err ( _ ) => panic ! ( " " ) , } , } , } , } }
Detect C compiler, default to GCC over Clang.
Detect C compiler default to GCC over Clang .