blob: 75070a4b0dfea7cbf37154a0ff1246b6a361ac1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use std::env;
fn rmain() -> Option<()> {
// Missing? No idea what's going on.
let target_os = env::var("CARGO_CFG_TARGET_OS").ok()?;
if target_os == "windows" {
let mut builder = cc::Build::new();
builder.file("c/windows.c");
builder.compile("info");
}
Some(())
}
fn main() {
let _ = rmain();
}
|