blob: 37c985766a38418067bd900f7d39d9af9c7b8c34 [file] [log] [blame]
Yi Kongc1a63152021-02-03 15:04:59 +08001extern crate autocfg;
2
3use std::env;
4
5fn main() {
6 // If the "i128" feature is explicity requested, don't bother probing for it.
7 // It will still cause a build error if that was set improperly.
8 if env::var_os("CARGO_FEATURE_I128").is_some() || autocfg::new().probe_type("i128") {
9 autocfg::emit("has_i128");
10 }
11
12 autocfg::rerun_path("build.rs");
13}