From 8250521593dfa58c98ab48e55dbb9b296960cb54 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 12 Dec 2022 14:37:41 -0800 Subject: [PATCH] Prevent build.rs rerunning unnecessarily on all source changes --- build/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/build.rs b/build/build.rs index 78a5120..fda7715 100644 --- a/build/build.rs +++ b/build/build.rs @@ -13,6 +13,8 @@ use std::path::Path; use std::process::{self, Command}; fn main() { + println!("cargo:rerun-if-changed=build.rs"); + let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc")); let mut is_clippy_driver = false;