We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aab242 commit e53eba3Copy full SHA for e53eba3
src/lib.rs
@@ -3736,6 +3736,8 @@ impl Build {
3736
if let Some(val) = self.env_cache.read().unwrap().get(v).cloned() {
3737
return val;
3738
}
3739
+ // Excluding `PATH` prevents spurious rebuilds on Windows, see
3740
+ // <https://github.com/rust-lang/cc-rs/pull/1215> for details.
3741
if self.emit_rerun_if_env_changed && !provided_by_cargo(v) && v != "PATH" {
3742
self.cargo_output
3743
.print_metadata(&format_args!("cargo:rerun-if-env-changed={}", v));
0 commit comments