From 95d8d56b0ae9348c6e5d48db2e7fb8fde3bdbf09 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 17 Mar 2025 10:13:44 +0100 Subject: [PATCH] perlmod: build.rs: rerun-if-changed=src/glue.c Signed-off-by: Wolfgang Bumiller --- perlmod/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perlmod/build.rs b/perlmod/build.rs index e2d88e9..f885035 100644 --- a/perlmod/build.rs +++ b/perlmod/build.rs @@ -66,7 +66,8 @@ fn main() { cc.flag(flag); } - // now build the static library: + // now build the static library, and tell cargo that a change to `glue.c` requires a rebuild: + println!("cargo::rerun-if-changed=src/glue.c"); cc.file("src/glue.c").compile("libglue.a"); // get perl's MULTIPLICITY flag: