From 5887ee5018c064805a97af9e8331c3bf9571d9e5 Mon Sep 17 00:00:00 2001 From: Robin Kruppe Date: Wed, 16 Nov 2016 23:34:15 +0100 Subject: [PATCH] Rebuild rustc_llvm when the rustllvm source files change --- src/librustc_llvm/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 8656bb8bf0036..10ea6459d97bc 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -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")