heapless/build.rs
Jorge Aparicio ef399ab44f add lock-free, interrupt-safe memory pool
this adds the stable subset of the `lifo::Pool` [1] API

[1]: https://github.com/japaric/lifo
2019-04-22 20:49:34 +02:00

18 lines
418 B
Rust

#![deny(warnings)]
use std::{env, error::Error};
fn main() -> Result<(), Box<Error>> {
let target = env::var("TARGET")?;
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
} else if target.starts_with("thumbv7m-") {
println!("cargo:rustc-cfg=armv7m");
} else if target.starts_with("thumbv7em-") {
println!("cargo:rustc-cfg=armv7m");
}
Ok(())
}