1 2 3 4 5 6 7
fn main() { let target = std::env::var("TARGET") .expect("TARGET environment variable not defined"); if target.contains("neon") { println!("cargo:rustc-cfg=libcore_neon"); } }