Skip to content

Commit

Permalink
docs: make the env var source of rerun-if-env-changed clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Aug 12, 2023
1 parent 3a73377 commit 24ad2bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24ad2bc

Please sign in to comment.