summaryrefslogtreecommitdiffstats
path: root/third_party/rust/whatsys/build.rs
blob: 3f329c7570b8ffdae8a79ba204ec49b1c84f4ae7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate cc;

use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();
    let target_os = target.split('-').nth(2).unwrap();

    if target_os == "windows" {
        let mut builder = cc::Build::new();
        builder.file("c/windows.c");
        builder.compile("info");
    }
}