Skip to content

Commit b4fc245

Browse files
authoredMay 7, 2024
Merge pull request #1130 from serde-rs/checkcfg
Resolve unexpected_cfgs warning
2 parents a3f62bb + 98f1a24 commit b4fc245

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ use std::env;
33
fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
55

6+
println!("cargo:rustc-check-cfg=cfg(integer128)");
7+
println!("cargo:rustc-check-cfg=cfg(limb_width_32)");
8+
println!("cargo:rustc-check-cfg=cfg(limb_width_64)");
9+
610
// Decide ideal limb width for arithmetic in the float parser. Refer to
711
// src/lexical/math.rs for where this has an effect.
812
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();

0 commit comments

Comments
 (0)