Skip to content

Commit a9df9fe

Browse files
authored
Merge pull request #324 from ehuss/rerun-if-changed
Fix build script to prevent change scanning.
2 parents 9411af3 + 4a24b2d commit a9df9fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ use std::env;
22

33
fn main() {
44
println!("cargo:rustc-env=HOST={}", env::var("TARGET").unwrap());
5+
// Prevents cargo from scanning the whole directory for changes.
6+
println!("cargo:rerun-if-changed=build.rs");
57
}

0 commit comments

Comments
 (0)