Fix #[cfg]
s in exception_to_system_handler
This commit is contained in:
parent
e57ca5f7db
commit
a6fea3cb28
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…
x
Reference in New Issue
Block a user