embassy/embassy-boot/stm32/build.rs
2022-06-27 14:24:19 +02:00

12 lines
229 B
Rust

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