Add build.rs to detect armv6
This commit is contained in:
parent
776be79f7b
commit
f1f90b17b5
3 changed files with 12 additions and 6 deletions
examples/boot/bootloader/stm32
|
@ -24,9 +24,4 @@ fn main() {
|
|||
if env::var("CARGO_FEATURE_DEFMT").is_ok() {
|
||||
println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").unwrap();
|
||||
if target.starts_with("thumbv6m-") {
|
||||
println!("cargo:rustc-cfg=armv6m");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue