dtolnay / dtolnay/proc-macro2

Changes to `RUSTC_BOOTSTRAP` causes unwanted recompilations

Open
#467 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
934
Forks
135
PR merge metrics
No merged PRs in 30d

Description

I have a rather large project and I need to sometimes change `RUSTC_BOOTSTRAP` for some reasons. This causes `proc_macro2` to recompile, which in turn recompile a large portion of our dependency tree. I personally find it quite surprising that this happens as this behavior is not documented anywhere.

Cargo verbose log:
```
Dirty proc-macro2 v1.0.86: the env variable RUSTC_BOOTSTRAP changed
Compiling proc-macro2 v1.0.86

```

Offending source code:

https://github.com/dtolnay/proc-macro2/blob/aa9476b27932ae1b1b50bbfe0530b3b261fc1b72/build.rs#L131

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.