Skip to content

Commit

Permalink
Add comment explaining why cc does not rebuild on env PATH change
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Oct 19, 2024
1 parent 9aab242 commit 0e9a13e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3736,6 +3736,7 @@ impl Build {
if let Some(val) = self.env_cache.read().unwrap().get(v).cloned() {
return val;
}
// Prevents spurious rebuilds on Windows #1215
if self.emit_rerun_if_env_changed && !provided_by_cargo(v) && v != "PATH" {
self.cargo_output
.print_metadata(&format_args!("cargo:rerun-if-env-changed={}", v));
Expand Down

0 comments on commit 0e9a13e

Please sign in to comment.