mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
c631049efc
closes #32 closes #33
11 lines
249 B
Rust
11 lines
249 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let target = env::var("TARGET").unwrap();
|
|
|
|
if target.starts_with("thumbv7m") | target.starts_with("thumbv7em") {
|
|
println!("cargo:rustc-cfg=armv7m")
|
|
}
|
|
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
}
|