embassy/embassy-boot-stm32/build.rs
2024-01-11 18:55:59 +01:00

9 lines
166 B
Rust

use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
}
}