embassy/embassy-boot/stm32/build.rs

9 lines
166 B
Rust
Raw Normal View History

2022-06-27 12:24:19 +00:00
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
}
}