rust/src/bootstrap/build.rs
2025-06-19 18:31:56 +08:00

8 lines
246 B
Rust

use std::env;
fn main() {
// this is needed because `HOST` is only available to build scripts.
let host = env::var("HOST").unwrap();
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-env=BUILD_TRIPLE={host}");
}