aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index f8ad163..475bd00 100644
--- a/build.rs
+++ b/build.rs
@@ -4,6 +4,11 @@ fn main() {
let target = env::var("TARGET").unwrap();
if target.starts_with("thumbv6m-") {
- println!("cargo:rustc-cfg=armv6m")
+ println!("cargo:rustc-cfg=armv6m");
+ } else if target.starts_with("thumbv7m-") {
+ println!("cargo:rustc-cfg=armv7m");
+ } else if target.starts_with("thumbv7em-") {
+ println!("cargo:rustc-cfg=armv7m");
+ println!("cargo:rustc-cfg=armv7em");
}
}