Skip to content

Commit

Permalink
Rebuild rustc_llvm when the rustllvm source files change
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Kruppe committed Nov 16, 2016
1 parent 766f6e4 commit 5887ee5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fn main() {
cfg.flag("-DLLVM_RUSTLLVM");
}

println!("cargo:rerun-if-changed=../rustllvm/PassWrapper.cpp");
println!("cargo:rerun-if-changed=../rustllvm/RustWrapper.cpp");
println!("cargo:rerun-if-changed=../rustllvm/ArchiveWrapper.cpp");
cfg.file("../rustllvm/PassWrapper.cpp")
.file("../rustllvm/RustWrapper.cpp")
.file("../rustllvm/ArchiveWrapper.cpp")
Expand Down

0 comments on commit 5887ee5

Please sign in to comment.