From 06c1e2f9b47b5bc9de049e1e1edfed27d8dd2c58 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 16 Dec 2018 19:34:16 +0100 Subject: note that the timer queue is not supported on ARMv6-M --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build.rs') diff --git a/build.rs b/build.rs index b29f0bd..2419b4e 100644 --- a/build.rs +++ b/build.rs @@ -3,6 +3,10 @@ use std::env; fn main() { let target = env::var("TARGET").unwrap(); + if target.starts_with("thumbv6m") { + println!("cargo:rustc-cfg=armv6m") + } + if target.starts_with("thumbv7m") | target.starts_with("thumbv7em") { println!("cargo:rustc-cfg=armv7m") } -- cgit v1.2.3