mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
14 lines
316 B
Rust
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;
|
|
}
|
|
}
|