diff --git a/mm2src/mm2_bin_lib/build.rs b/mm2src/mm2_bin_lib/build.rs index 980af2dc2f..76cc3a9d4d 100644 --- a/mm2src/mm2_bin_lib/build.rs +++ b/mm2src/mm2_bin_lib/build.rs @@ -42,6 +42,7 @@ fn set_build_variables() -> Result<(), String> { fn main() { println!("cargo:rerun-if-env-changed=CARGO_PKG_VERSION"); println!("cargo:rerun-if-env-changed=KDF_BUILD_TAG"); + println!("cargo::rerun-if-changed=.git/HEAD"); set_build_variables().expect("Failed to set build variables"); }