Skip to content

Commit

Permalink
Merge pull request #324 from ehuss/rerun-if-changed
Browse files Browse the repository at this point in the history
Fix build script to prevent change scanning.
  • Loading branch information
oli-obk authored Mar 8, 2024
2 parents 9411af3 + 4a24b2d commit a9df9fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ use std::env;

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

0 comments on commit a9df9fe

Please sign in to comment.