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 c1fba00 commit 2d472d3
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 2d472d3

Please sign in to comment.