mirror of
https://github.com/serde-rs/json.git
synced 2026-04-30 14:54:28 +00:00
Prevent build.rs rerunning unnecessarily on all source changes
This commit is contained in:
2
build.rs
2
build.rs
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user