Skip to content

Commit 71c672b

Browse files
authored
Don't rerun if PATH changes (#1215)
1 parent 748b777 commit 71c672b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3718,7 +3718,7 @@ impl Build {
37183718
if let Some(val) = self.env_cache.read().unwrap().get(v).cloned() {
37193719
return val;
37203720
}
3721-
if self.emit_rerun_if_env_changed && !provided_by_cargo(v) {
3721+
if self.emit_rerun_if_env_changed && !provided_by_cargo(v) && v != "PATH" {
37223722
self.cargo_output
37233723
.print_metadata(&format_args!("cargo:rerun-if-env-changed={}", v));
37243724
}

0 commit comments

Comments
 (0)