]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | extern crate autocfg; |
2 | ||
8faf50e0 | 3 | use std::env; |
8faf50e0 XL |
4 | |
5 | fn main() { | |
136023e0 XL |
6 | let ac = autocfg::new(); |
7 | if ac.probe_type("i128") { | |
8 | println!("cargo:rustc-cfg=has_i128"); | |
9 | } else if env::var_os("CARGO_FEATURE_I128").is_some() { | |
10 | panic!("i128 support was not detected!"); | |
8faf50e0 | 11 | } |
8faf50e0 | 12 | |
f035d41b | 13 | autocfg::rerun_path("build.rs"); |
8faf50e0 | 14 | } |