2022-12-01 17:26:22 +00:00
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let target = env::var("TARGET").unwrap();
|
|
|
|
if target.starts_with("thumbv6m-") {
|
|
|
|
println!("cargo:rustc-cfg=armv6m");
|
|
|
|
}
|
2024-05-31 19:41:42 +00:00
|
|
|
println!("cargo:rustc-check-cfg=cfg(armv6m)");
|
2022-12-01 17:26:22 +00:00
|
|
|
}
|