build.rs 406 B

123456789101112131415161718
  1. // -*- coding: utf-8 -*-
  2. //
  3. // Copyright 2021 Michael Büsch <m@bues.ch>
  4. //
  5. // Licensed under the Apache License version 2.0
  6. // or the MIT license, at your option.
  7. // SPDX-License-Identifier: Apache-2.0 OR MIT
  8. //
  9. fn main() {
  10. let ac = autocfg::new();
  11. ac.emit_has_type("i128");
  12. println!("cargo:rustc-check-cfg=cfg(has_i128)");
  13. autocfg::rerun_path("build.rs");
  14. }
  15. // vim: ts=4 sw=4 expandtab