-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build-rs): Implicitly report rerun-if-env-changed for input (#14911)
### What does this PR try to resolve? As we abstract away the env variables, users can't do a good job of reporting these, so we'll do it ourselves. ### How should we test and review this PR? This isn't the shortest path to this solution because I had originally designed this like more like [`build_env`](https://docs.rs/build-env/latest/build_env/struct.BuildEnv.html) but in a way to allow users to choose what policies they want (rather than baking in their HOST/TARGET scheme). I decided to not support a custom `env` yet to make this more incremental and to see what feedback we get but I left the implementation in a way that would make it easy to support it. I made `is_present` part of `Env` because I was unsure if callers of the API would want to handle that differently for `rerun-if-env-changed` or other parts. ### Additional information CC @CAD97
- Loading branch information
Showing
1 changed file
with
85 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters