Skip to content

Commit

Permalink
Fix build script to prevent change scanning.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Mar 5, 2024
1 parent 9411af3 commit 4a24b2d
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 4a24b2d

Please sign in to comment.