From 616e9faaf13ccd90fb898008b5921c235893357e Mon Sep 17 00:00:00 2001 From: 132ikl <132@ikl.sh> Date: Wed, 10 Jul 2024 19:05:24 -0400 Subject: [PATCH] Fix main binary being rebuilt when nothing has changed (#13337) # Description The build script is currently re-run on each `cargo build` even when it has not changed. The `rerun-if-changed` line points to `/build.rs`, but `build.rs` is actually located at `/scripts/build.rs`. This updates that path. # User-Facing Changes N/A # Tests + Formatting N/A --- scripts/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.rs b/scripts/build.rs index beabba80dc..e366b4998c 100644 --- a/scripts/build.rs +++ b/scripts/build.rs @@ -14,5 +14,5 @@ fn main() { // Tango uses dynamic linking, to allow us to dynamically change between two bench suit at runtime. // This is currently not supported on non nightly rust, on windows. println!("cargo:rustc-link-arg-benches=-rdynamic"); - println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rerun-if-changed=scripts/build.rs"); }