<commit_before>extern crate cc;
use cc::ToolFamily::*;

fn main() {
    let mut build = cc::Build::new();
    build.cpp(true);
    let compiler = build.try_get_compiler();
    if compiler.is_ok() && compiler.unwrap().family == Clang {
        build.flag_if_supported("-std=c++11").cpp_set_stdlib("c++");
    } else {
        build.flag_if_supported("-std=c++14");
    }
    build
        .file("src/wrapper.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_cfg.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_cross.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_glsl.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_hlsl.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_msl.cpp")
        .compile("spirv-cross-rust-wrapper");
}<commit_msg>Temporarily force C++11 for Clang<commit_after>extern crate cc;
use cc::ToolFamily::*;

fn main() {
    let mut build = cc::Build::new();
    build.cpp(true);
    let compiler = build.try_get_compiler();
    if compiler.is_ok() && compiler.unwrap().family == Clang {
        build.flag("-std=c++11").cpp_set_stdlib("c++");
    } else {
        build.flag_if_supported("-std=c++14");
    }
    build
        .file("src/wrapper.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_cfg.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_cross.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_glsl.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_hlsl.cpp")
        .file("src/vendor/SPIRV-Cross/spirv_msl.cpp")
        .compile("spirv-cross-rust-wrapper");
}
{'fraction_non_alphanumeric': 0.1867911941294196, 'fraction_numerical': 0.0066711140760507, 'mean_word_length': 2.9577836411609497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1316531', 'n_tokens_mistral': 545, 'n_tokens_neox': 550, 'n_words': 64}