Sha256: 2804f06420d4a9479dac26f28c2ecced0a5f7274ffb273cc4c44a42586441286
Contents?: true
Size: 649 Bytes
Versions: 39
Compression:
Stored size: 649 Bytes
Contents
fn main() { #[cfg(feature = "c_wrapper")] { use std::env; let host = env::var("HOST").unwrap(); let target = env::var("TARGET").unwrap(); if host != target { println!("cargo:warning=async-timer is cross-compiled, C wrapper cannot be used. Sorry but I'm too lazy to bother with it, use cross or docker with proper image"); return; } #[cfg(all(target_family = "unix", not(any(target_os = "macos", target_os = "ios"))))] { cc::Build::new().file("src/c_wrapper/posix.c") .compile("libposix_wrapper.a"); } } }
Version data entries
39 entries across 39 versions & 1 rubygems