rtic/build.rs

12 lines
249 B
Rust
Raw Permalink Normal View History

2017-04-06 21:06:33 +02:00
use std::env;
fn main() {
2017-04-12 06:15:05 +02:00
let target = env::var("TARGET").unwrap();
2018-11-03 17:02:41 +01:00
if target.starts_with("thumbv7m") | target.starts_with("thumbv7em") {
println!("cargo:rustc-cfg=armv7m")
2017-04-06 21:06:33 +02:00
}
2017-04-10 05:42:17 +02:00
println!("cargo:rerun-if-changed=build.rs");
2017-04-06 21:06:33 +02:00
}