From 5d6847ab7b32d8c9fa243c7dc10ed5a235e06b79 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 11 Apr 2017 23:15:05 -0500 Subject: partial thumv6m-none-eabi support --- build.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build.rs') diff --git a/build.rs b/build.rs index 19625e5..ef67dce 100644 --- a/build.rs +++ b/build.rs @@ -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() { -- cgit v1.2.3