1 use autocfg::AutoCfg;
2 
3 // The rustc-cfg strings below are *not* public API. Please let us know by
4 // opening a GitHub issue if your build environment requires some way to enable
5 // these cfgs other than by executing our build script.
main()6 fn main() {
7     let cfg = match AutoCfg::new() {
8         Ok(cfg) => cfg,
9         Err(e) => {
10             println!(
11                 "cargo:warning=crossbeam-utils: unable to determine rustc version: {}",
12                 e
13             );
14             return;
15         }
16     };
17 
18     cfg.emit_type_cfg("core::sync::atomic::AtomicU8", "has_atomic_u8");
19     cfg.emit_type_cfg("core::sync::atomic::AtomicU16", "has_atomic_u16");
20     cfg.emit_type_cfg("core::sync::atomic::AtomicU32", "has_atomic_u32");
21     cfg.emit_type_cfg("core::sync::atomic::AtomicU64", "has_atomic_u64");
22     cfg.emit_type_cfg("core::sync::atomic::AtomicU128", "has_atomic_u128");
23 }
24