Browse Source

build.rs: print rerun-if-change for all the C/asm sources

Jorge Aparicio 8 years ago
parent
commit
72802069a2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      build.rs

+ 3 - 1
build.rs

@@ -406,7 +406,9 @@ fn main() {
         }
         }
 
 
         for src in sources.map.values() {
         for src in sources.map.values() {
-            cfg.file(Path::new("compiler-rt/compiler-rt-cdylib/compiler-rt/lib/builtins").join(src));
+            let src = Path::new("compiler-rt/compiler-rt-cdylib/compiler-rt/lib/builtins").join(src);
+            cfg.file(&src);
+            println!("cargo:rerun-if-changed={}", src.display());
         }
         }
 
 
         cfg.compile("libcompiler-rt.a");
         cfg.compile("libcompiler-rt.a");