rtic/build.rs
2017-07-04 11:26:11 -05:00

11 lines
217 B
Rust

use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
}
println!("cargo:rerun-if-changed=build.rs");
}