Fix #[cfg]s in exception_to_system_handler

This commit is contained in:
Liam Murphy 2021-07-27 17:40:13 +10:00
parent e57ca5f7db
commit a6fea3cb28

11
embassy-extras/build.rs Normal file
View file

@ -0,0 +1,11 @@
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
} else if target.starts_with("thumbv8m.") {
println!("cargo:rustc-cfg=armv8m");
}
}