Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for env! in rust code #972

Closed
glandium opened this issue Mar 10, 2021 · 0 comments · Fixed by #1107
Closed

Better support for env! in rust code #972

glandium opened this issue Mar 10, 2021 · 0 comments · Fixed by #1107

Comments

@glandium
Copy link
Collaborator

env! in rust code includes the literal value of environment variables set at compilation time. sccache currently hashes environment variables that start with CARGO_ except CARGO_METAFLAGS, or CARGO (per #89 and #942), but that doesn't cover all possible use cases and is thus not future-proof.

Rust has recently added support for outputing the variables used by the source in its dep-info (rust-lang/rust#40364), so for appropriate versions of rustc, we could actually do the right thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant