Add 'rerun-if-changed' directives to build script

This commit is contained in:
Bruno BELANYI 2022-07-24 16:33:06 +02:00
parent d2c61a81b5
commit 915244b238

View file

@ -134,5 +134,10 @@ fn main() -> Result<()> {
// Include the generated files now that the build script has run.
println!("cargo:rustc-cfg=generated_boards");
// Run the build script only if something in move generation might have changed.
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=movegen/naive/");
println!("cargo:rerun-if-changed=movegen/wizardry/");
Ok(())
}