<commit_before>extern crate pkg_config;
extern crate gcc;

fn main() {
    if !pkg_config::find_library("liblmdb").is_ok() {
        gcc::compile_library("liblmdb.a",
                             &["mdb/libraries/liblmdb/mdb.c",
                               "mdb/libraries/liblmdb/midl.c"]);
    }
}<commit_msg>Set MDB_DSYNC and MDB_FDATASYNC on dragonflybsd.<commit_after>extern crate pkg_config;
extern crate gcc;

fn main() {
    let target = std::env::var("TARGET").unwrap();

    if !pkg_config::find_library("liblmdb").is_ok() {
        let mut config = gcc::Config::new();
        config.file("mdb/libraries/liblmdb/mdb.c")
              .file("mdb/libraries/liblmdb/midl.c");

        if target.contains("dragonfly") {
            config.flag("-DMDB_DSYNC=O_SYNC");
            config.flag("-DMDB_FDATASYNC=fsync");
        }

        config.compile("liblmdb.a");
    }
}
{'fraction_non_alphanumeric': 0.15664018161180476, 'fraction_numerical': 0.0, 'mean_word_length': 2.47244094488189, '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': '6233303', 'n_tokens_mistral': 326, 'n_tokens_neox': 310, 'n_words': 42}