Skip to content

Commit

Permalink
Prevent build.rs rerunning unnecessarily on all source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 12, 2022
1 parent 1b6ebaf commit 8250521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use std::path::Path;
use std::process::{self, Command};

fn main() {
println!("cargo:rerun-if-changed=build.rs");

let rustc = env::var_os("RUSTC").unwrap_or_else(|| OsString::from("rustc"));

let mut is_clippy_driver = false;
Expand Down

0 comments on commit 8250521

Please sign in to comment.