diff options
author | 2019-08-11 12:55:39 +0530 | |
---|---|---|
committer | 2019-08-11 13:56:57 +0530 | |
commit | 57d44f6648bba3eb2746e64fbf28cbac4012a19c (patch) | |
tree | f0d73be863fb34681c05707d0bf8baf1c0a6ebc9 /build.rs | |
parent | 1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e (diff) | |
download | cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.tar.gz cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.tar.zst cortex-m-57d44f6648bba3eb2746e64fbf28cbac4012a19c.zip |
Add {M,P}SPLIM access routines found on ARMv8-M
Signed-off-by: Aurabindo Jayamohanan <mail@aurabindo.in>
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -26,9 +26,13 @@ fn main() { println!("cargo:rustc-cfg=cortex_m"); println!("cargo:rustc-cfg=armv7m"); //println!("cargo:rustc-cfg=armv7em"); - } else if target.starts_with("thumbv8m") { + } else if target.starts_with("thumbv8m.base") { println!("cargo:rustc-cfg=cortex_m"); println!("cargo:rustc-cfg=armv8m"); + } else if target.starts_with("thumbv8m.main") { + println!("cargo:rustc-cfg=cortex_m"); + println!("cargo:rustc-cfg=armv8m"); + println!("cargo:rustc-cfg=armv8m_main"); } if target.ends_with("-eabihf") { |