build.rs 372 B

12345678910111213
  1. extern crate autocfg;
  2. use std::env;
  3. fn main() {
  4. // If the "i128" feature is explicity requested, don't bother probing for it.
  5. // It will still cause a build error if that was set improperly.
  6. if env::var_os("CARGO_FEATURE_I128").is_some() || autocfg::new().probe_type("i128") {
  7. autocfg::emit("has_i128");
  8. }
  9. autocfg::rerun_path("build.rs");
  10. }