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

Changes to RUSTC_BOOTSTRAP causes unwanted recompilations #467

Open
weiznich opened this issue Jul 16, 2024 · 0 comments
Open

Changes to RUSTC_BOOTSTRAP causes unwanted recompilations #467

weiznich opened this issue Jul 16, 2024 · 0 comments

Comments

@weiznich
Copy link

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:

println!("cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP");

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

No branches or pull requests

1 participant