about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2025-06-19 18:31:56 +0800
committerDeadbeef <ent3rm4n@gmail.com>2025-06-19 18:31:56 +0800
commit7760f8ec4297fc9a8bf319ffefff02ba9b17458c (patch)
tree1bcffd37672b78e0322a584c93ac28841139a3e5
parent70e2b4a4d197f154bed0eb3dcb5cac6a948ff3a3 (diff)
downloadrust-7760f8ec4297fc9a8bf319ffefff02ba9b17458c.tar.gz
rust-7760f8ec4297fc9a8bf319ffefff02ba9b17458c.zip
add comment to `src/bootstrap/build.rs`
-rw-r--r--src/bootstrap/build.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/build.rs b/src/bootstrap/build.rs
index e0e32d31353..d9810e899a0 100644
--- a/src/bootstrap/build.rs
+++ b/src/bootstrap/build.rs
@@ -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}");