Skip to content

Commit

Permalink
docs: further tweak rerun-if-env-changed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Aug 17, 2023
1 parent 7e9de3f commit 9b89ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ Note that the environment variables here are intended for global environment
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.

those received by the executable of the build script. Due to Cargo's
internal cache invalidation Cargo will effectively re-run the build script
every time one of the variables that Cargo sets changes.

### The `links` Manifest Key

Expand Down

0 comments on commit 9b89ff7

Please sign in to comment.