Skip to content

Commit 27cd652

Browse files
committed
add expected cfgs to testsuite
1 parent f4d1570 commit 27cd652

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testsuite/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
fn main() {
22
let target = std::env::var("TARGET").unwrap();
33

4+
println!("cargo:rustc-check-cfg=cfg(armv6m)");
5+
println!("cargo:rustc-check-cfg=cfg(armv7m)");
6+
println!("cargo:rustc-check-cfg=cfg(armv7em)");
7+
println!("cargo:rustc-check-cfg=cfg(armv8m)");
8+
println!("cargo:rustc-check-cfg=cfg(armv8m_base)");
9+
println!("cargo:rustc-check-cfg=cfg(armv8m_main)");
10+
411
if target.starts_with("thumbv6m-") {
512
println!("cargo:rustc-cfg=armv6m");
613
} else if target.starts_with("thumbv7m-") {

0 commit comments

Comments
 (0)