From 8f8da0f8bba9cb13de4bd96e37b52b76121974cc Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 29 Jan 2023 14:23:45 +0300 Subject: [PATCH] Fix rerun-if-changed emmiting from build.rs The docs state that it accepts `PATH`, but not like the env variable. So to make it work each `PATH` should be emmited from each `println!`. Fixes #2657. --- build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 1a3f8f9e..98e9229c 100644 --- a/build.rs +++ b/build.rs @@ -28,7 +28,9 @@ mod wayland { fn main() { // The script doesn't depend on our code - println!("cargo:rerun-if-changed=build.rs:wayland_protocols"); + println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rerun-if-changed=wayland_protocols"); + // Setup cfg aliases cfg_aliases! { // Systems.