]> Repositorios git - scryer-prolog.git/commitdiff
only rerun build.rs when something in src/ has changed
authorSkgland <[email protected]>
Mon, 10 Jan 2022 18:59:56 +0000 (19:59 +0100)
committerSkgland <[email protected]>
Mon, 10 Jan 2022 20:20:07 +0000 (21:20 +0100)
by default (when no rerun-if is emitted) build.rs is rerun if something in the package changes

build.rs

index 3571199e417ac996148f6098b920f86fcff61c54..e0f1d16ea2aa0e9b9d6ebb2bc885265c93c7a783 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -83,4 +83,6 @@ fn main() {
         .arg(static_atoms_path.as_os_str())
         .spawn().unwrap()
         .wait().unwrap();
+
+    println!("cargo:rerun-if-changed=src/");
 }