Add build.rs to detect armv6
This commit is contained in:
11
embassy-boot/stm32/build.rs
Normal file
11
embassy-boot/stm32/build.rs
Normal file
@ -0,0 +1,11 @@
|
||||
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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user