Add rerun-if-env-changed=RUST_CHECK to librustc_llvm

This commit is contained in:
varkor 2018-04-19 00:09:41 +01:00 committed by GitHub
parent 84f52a7162
commit 86acb09273
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ fn detect_llvm_link() -> (&'static str, &'static str) {
fn main() {
if env::var_os("RUST_CHECK").is_some() {
// If we're just running `check`, there's no need for LLVM to be built.
println!("cargo:rerun-if-env-changed=RUST_CHECK");
return;
}