1use std::env;23fn main() {4 let target = env::var("TARGET").expect("TARGET env var is set by cargo");56 let nix_system = if target.starts_with("x86_64-unknown-linux-") {7 "x86_64-linux"8 } else if target.starts_with("aarch64-unknown-linux-") {9 "aarch64-linux"10 } else {11 panic!("unknown nix system name for rust {target} triple!");12 };1314 println!("cargo:rustc-env=NIX_SYSTEM={nix_system}");15}difftreelog
source
crates/fleet-base/build.rs397 Bsourcehistory