1 2 3 4 5 6 7 8
use std::env; fn main() { let target = env::var("TARGET").unwrap(); if target.starts_with("thumbv6m-") { println!("cargo:rustc-cfg=armv6m"); } }