From 2174286e9dfb087cc16e238d574fa306f2c31828 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Fri, 27 Sep 2024 08:42:02 +0000 Subject: [PATCH] Don't rerun if PATH changes --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2a7e3a11..98556981 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)); }