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 0b54871 commit 8794844
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::{self, FromStr};

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

// Decide ideal limb width for arithmetic in the float parser. Refer to
// src/lexical/math.rs for where this has an effect.
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
Expand Down

0 comments on commit 8794844

Please sign in to comment.