Skip to content

Commit

Permalink
Don't rerun if PATH changes (#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton authored Sep 27, 2024
1 parent 748b777 commit 71c672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3718,7 +3718,7 @@ impl Build {
if let Some(val) = self.env_cache.read().unwrap().get(v).cloned() {
return val;
}
if self.emit_rerun_if_env_changed && !provided_by_cargo(v) {
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 71c672b

Please sign in to comment.