Skip to content

Commit c08b169

Browse files
author
Jorge Aparicio
committed
add rebuild logic to compiler-rt-cdylib
fixes #136
1 parent 631b568 commit c08b169

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: compiler-rt/compiler-rt-cdylib/build.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,16 @@ fn main() {
6262
"powisf2.c",
6363
]);
6464

65+
let builtins_dir = Path::new("compiler-rt/lib/builtins");
6566
for src in sources.files.iter() {
66-
cfg.file(Path::new("compiler-rt/lib/builtins").join(src));
67+
cfg.file(builtins_dir.join(src));
6768
}
6869

6970
cfg.compile("libcompiler-rt.a");
71+
72+
println!("cargo:rerun-if-changed=build.rs");
73+
74+
for source in sources.files.iter() {
75+
println!("cargo:rerun-if-changed={}", builtins_dir.join(source).display());
76+
}
7077
}

0 commit comments

Comments
 (0)