Browse Source

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

Jorge Aparicio 8 năm trước cách đây
mục cha
commit
72802069a2
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      build.rs

+ 3 - 1
build.rs

@@ -406,7 +406,9 @@ fn main() {
         }
 
         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");