rustc/vendor/stacker-0.1.17/build.rs
2024-11-29 22:33:13 +01:00

14 lines
316 B
Rust

use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
let mut cfg = cc::Build::new();
if target.contains("windows") {
cfg.define("WINDOWS", None);
cfg.file("src/arch/windows.c");
cfg.include("src/arch").compile("libstacker.a");
} else {
return;
}
}