diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2025-06-19 18:31:56 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2025-06-19 18:31:56 +0800 |
| commit | 7760f8ec4297fc9a8bf319ffefff02ba9b17458c (patch) | |
| tree | 1bcffd37672b78e0322a584c93ac28841139a3e5 | |
| parent | 70e2b4a4d197f154bed0eb3dcb5cac6a948ff3a3 (diff) | |
| download | rust-7760f8ec4297fc9a8bf319ffefff02ba9b17458c.tar.gz rust-7760f8ec4297fc9a8bf319ffefff02ba9b17458c.zip | |
add comment to `src/bootstrap/build.rs`
| -rw-r--r-- | src/bootstrap/build.rs | 1 |
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}"); |
