perlmod: build.rs: rerun-if-changed=src/glue.c

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2025-03-17 10:13:44 +01:00
parent ba9864d3b9
commit 95d8d56b0a

View File

@ -66,7 +66,8 @@ fn main() {
cc.flag(flag); 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"); cc.file("src/glue.c").compile("libglue.a");
// get perl's MULTIPLICITY flag: // get perl's MULTIPLICITY flag: