From 24ad2bc24cda7497144366ec497d0f0a9e0bca2f Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Sat, 12 Aug 2023 10:27:21 +1000 Subject: [PATCH] docs: make the env var source of rerun-if-env-changed clearer --- src/doc/src/reference/build-scripts.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/doc/src/reference/build-scripts.md b/src/doc/src/reference/build-scripts.md index 73cf441c7..e7560812b 100644 --- a/src/doc/src/reference/build-scripts.md +++ b/src/doc/src/reference/build-scripts.md @@ -346,8 +346,10 @@ The `rerun-if-env-changed` instruction tells Cargo to re-run the build script if the value of an environment variable of the given name has changed. Note that the environment variables here are intended for global environment -variables like `CC` and such, it is not necessary to use this for environment -variables like `TARGET` that Cargo sets. +variables like `CC` and such, it is not possible to use this for environment +variables like `TARGET` that [Cargo sets for build scripts][build-env]. The +environment variables in use are those received by `cargo` invocations, not +those received by the executable of the build script. ### The `links` Manifest Key