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