mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 13:00:26 +00:00

this adds the stable subset of the `lifo::Pool` [1] API [1]: https://github.com/japaric/lifo
18 lines
418 B
Rust
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(())
|
|
}
|