diff options
author | 2017-03-11 23:21:59 -0500 | |
---|---|---|
committer | 2017-03-11 23:21:59 -0500 | |
commit | 2885f691896dc18722b5e1344770dbcd5a7de235 (patch) | |
tree | 1ec4ef00b3634e23e4b7d62b7fc38f2cd8820d23 /build.rs | |
parent | 3f4c581a9cd52c4ad14da2d7008d004a2d888f36 (diff) | |
parent | 173b5bc9750909408cfcd6140ddbf8a119dc7a18 (diff) | |
download | cortex-m-2885f691896dc18722b5e1344770dbcd5a7de235.tar.gz cortex-m-2885f691896dc18722b5e1344770dbcd5a7de235.tar.zst cortex-m-2885f691896dc18722b5e1344770dbcd5a7de235.zip |
Merge pull request #17 from japaric/ng
v0.2.0
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..f8ad163 --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +use std::env; + +fn main() { + let target = env::var("TARGET").unwrap(); + + if target.starts_with("thumbv6m-") { + println!("cargo:rustc-cfg=armv6m") + } +} |