rtic/build.rs
Jorge Aparicio c631049efc v0.4.0
closes #32
closes #33
2018-11-03 17:16:55 +01:00

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");
}