add comment to src/bootstrap/build.rs

This commit is contained in:
Deadbeef 2025-06-19 18:31:56 +08:00
parent 70e2b4a4d1
commit 7760f8ec42

View file

@ -1,6 +1,7 @@
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}");