Auto merge of #138 - rust-lang-nursery:cdylib-rebuild, r=japaric

add rebuild logic to compiler-rt-cdylib

fixes #136
This commit is contained in:
bors 2017-02-04 01:01:26 +00:00
commit 0d0f22a996
1 changed files with 8 additions and 1 deletions

View File

@ -62,9 +62,16 @@ fn main() {
"powisf2.c", "powisf2.c",
]); ]);
let builtins_dir = Path::new("compiler-rt/lib/builtins");
for src in sources.files.iter() { for src in sources.files.iter() {
cfg.file(Path::new("compiler-rt/lib/builtins").join(src)); cfg.file(builtins_dir.join(src));
} }
cfg.compile("libcompiler-rt.a"); cfg.compile("libcompiler-rt.a");
println!("cargo:rerun-if-changed=build.rs");
for source in sources.files.iter() {
println!("cargo:rerun-if-changed={}", builtins_dir.join(source).display());
}
} }