11 lines
259 B
Rust
11 lines
259 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let target = env::var("TARGET").unwrap();
|
|
|
|
if target.starts_with("thumbv6m-") {
|
|
println!("cargo:rustc-cfg=armv6m");
|
|
} else if target.starts_with("thumbv8m.") {
|
|
println!("cargo:rustc-cfg=armv8m");
|
|
}
|
|
}
|