aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorGravatar eV <ev@7pr.xyz> 2018-11-03 22:29:46 +0000
committerGravatar eV <ev@7pr.xyz> 2018-11-03 22:32:41 +0000
commit653aa602a21881dec78e447d3fefa76b740384e3 (patch)
treede22d860f55ff2c90a247ad3e936c7a2aa5892c3 /build.rs
parent8fd4547db6fb562dbaafe592b8415bae78a76106 (diff)
downloadcortex-m-653aa602a21881dec78e447d3fefa76b740384e3.tar.gz
cortex-m-653aa602a21881dec78e447d3fefa76b740384e3.tar.zst
cortex-m-653aa602a21881dec78e447d3fefa76b740384e3.zip
add thumbv8m baseline support
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 6d08ba9..47e86bb 100644
--- a/build.rs
+++ b/build.rs
@@ -26,6 +26,9 @@ fn main() {
println!("cargo:rustc-cfg=cortex_m");
println!("cargo:rustc-cfg=armv7m");
//println!("cargo:rustc-cfg=armv7em");
+ } else if target.starts_with("thumbv8m") {
+ println!("cargo:rustc-cfg=cortex_m");
+ println!("cargo:rustc-cfg=armv8m");
}
if target.ends_with("-eabihf") {