From f39fa8ebef121e28d2f7dd9f10df7e8dbb2cf621 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Sun, 22 Apr 2018 15:02:14 +0100 Subject: [PATCH 1/2] Add comment to build script about rerun-if-changed, and remove redundant line for build.rs --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 88f7fef..e630cfe 100644 --- a/build.rs +++ b/build.rs @@ -12,6 +12,6 @@ fn main() { .unwrap(); println!("cargo:rustc-link-search={}", out.display()); - println!("cargo:rerun-if-changed=build.rs"); + // Only re-run the build script when memory.x is changed, instead of at every build println!("cargo:rerun-if-changed=memory.x"); } From ba27df0b57afd8d952f728b379449a9b662823ea Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Tue, 7 Aug 2018 20:58:00 +0100 Subject: [PATCH 2/2] Update comment on rerun-if-changed to better reflect what it does --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index e630cfe..98f603e 100644 --- a/build.rs +++ b/build.rs @@ -12,6 +12,7 @@ fn main() { .unwrap(); println!("cargo:rustc-link-search={}", out.display()); - // Only re-run the build script when memory.x is changed, instead of at every build + // Only re-run the build script when memory.x is changed, + // instead of when any part of the source code changes. println!("cargo:rerun-if-changed=memory.x"); }