From fe82a37e8279c5b1cf5256972b97cf2a12252935 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 12 Dec 2022 14:37:40 -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 b95f796..1f67922 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,8 @@ use std::fs; use std::path::PathBuf; fn main() { + println!("cargo:rerun-if-changed=build.rs"); + let libstdcxx = cfg!(feature = "libstdc++"); let libcxx = cfg!(feature = "libc++"); let nothing = cfg!(feature = "nothing");