diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-06 14:06:33 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-06 14:06:33 -0500 |
| commit | e631d8513a83d5bf1d1e344977bdd3d84efdbc13 (patch) | |
| tree | 5ab01d9c055007a51ea7c2b92e24712ecdb4069a /build.rs | |
| parent | 01c8c3312db92e0d8c5fbf2b91268644308aa6f9 (diff) | |
partial thumbv6m-none-eabi support
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..46bdb71 --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +use std::env; + +fn main() { + let target = env::var("TARGET").unwrap(); + + if target == "thumbv6m-none-eabi" { + println!("cargo:rustc-cfg=thumbv6m"); + } +} |
