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 05316ff commit d28a23b
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 @@ -3,6 +3,8 @@ use std::process::Command;
use std::str;

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

let compiler = match rustc_minor_version() {
Some(compiler) => compiler,
None => return,
Expand Down

0 comments on commit d28a23b

Please sign in to comment.