diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:34:16 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-12-16 19:38:22 +0100 |
| commit | 06c1e2f9b47b5bc9de049e1e1edfed27d8dd2c58 (patch) | |
| tree | b04a1fdcd1f075706d99ff3006075107da4e1b79 /build.rs | |
| parent | d35f5bc0b0453c2e98b8398d36bd2ba553edce45 (diff) | |
note that the timer queue is not supported on ARMv6-M
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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") } |
