From d28a23bed4ab5173e57379b0b66ee1a78bfca9d1 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.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 2bf4418c..81ad970d 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,8 @@ use std::process::Command; use std::str; fn main() { + println!("cargo:rerun-if-changed=build.rs"); + let compiler = match rustc_minor_version() { Some(compiler) => compiler, None => return,