diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-11 23:15:05 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-11 23:19:18 -0500 |
| commit | 5d6847ab7b32d8c9fa243c7dc10ed5a235e06b79 (patch) | |
| tree | e385c865b5929173a22b0d8c247a953bfc82184f /build.rs | |
| parent | 6af1873922edefaae93159cda6bba08884f0bb60 (diff) | |
partial thumv6m-none-eabi support
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ use std::path::PathBuf; use syn::{Ident, IntTy, Lit}; fn main() { + let target = env::var("TARGET").unwrap(); + + if target.starts_with("thumbv6m") { + println!("cargo:rustc-cfg=thumbv6m"); + } + let bits = if env::var_os("CARGO_FEATURE_P2").is_some() { 2 } else if env::var_os("CARGO_FEATURE_P3").is_some() { |
