]>
Commit | Line | Data |
---|---|---|
1 | extern crate autocfg; | |
2 | ||
3 | use std::env; | |
4 | ||
5 | fn main() { | |
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!"); | |
11 | } | |
12 | ||
13 | autocfg::rerun_path("build.rs"); | |
14 | } |