-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow rustc env vars to be set in files (#556)
Build scripts are executed in the exec configuration, not the target configuration, which means it's currently impossible to use values which were generated as a result of the `--stamp` flag when creating a `rust_binary`. This means that embedding things like build timestamps, git shas, and dynamic version numbers, is impossible. This change allows you to depend, in the target configuration (because no transition occurs on the attribute) on the output of a genrule which consumes data from the stable and volatile workspace status commands.
- Loading branch information
1 parent
129605e
commit fee3b3c
Showing
11 changed files
with
139 additions
and
21 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
Oops, something went wrong.