Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    #[cfg(feature="sys_info")]
    {
        extern crate cc;
        let mut builder = cc::Build::new();
        #[cfg(target_os = "windows")]
        builder.file("c/windows.c");
    
        #[cfg(any(target_os = "linux", target_os = "android", target_os = "androideabi"))]
        builder.file("c/linux.c");
        
        builder.compile("links")
    }
}