Fix #[cfg]
s in exception_to_system_handler
This commit is contained in:
parent
e57ca5f7db
commit
a6fea3cb28
1 changed files with 11 additions and 0 deletions
11
embassy-extras/build.rs
Normal file
11
embassy-extras/build.rs
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue