fabro/lib/crates/fabro-proc/build.rs
Bryan Helmkamp 80de5ca616 refactor(static): centralize env var names
Add fabro-static::EnvVars as the shared registry for fixed environment variable names and migrate env reads, clap env bindings, and subprocess/test allowlists to use it.

Add clippy bans for raw std::env lookup APIs so future dynamic env facades must be documented explicitly.
2026-04-24 12:29:51 -04:00

14 lines
380 B
Rust

#![allow(
clippy::disallowed_methods,
reason = "Build scripts run at compile time and read Cargo-provided env vars."
)]
fn main() {
println!("cargo:rerun-if-changed=c/capture_argv.c");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
cc::Build::new()
.file("c/capture_argv.c")
.compile("capture_argv");
}
}