1 2 3 4 5
fn main() { if let Ok(target) = std::env::var("TARGET") { println!("cargo:rustc-env=DEFAULT_TARGET={target}"); } }