Skip to content

Commit

Permalink
add expected cfgs to testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgreig committed Aug 13, 2024
1 parent f4d1570 commit 27cd652
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testsuite/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
fn main() {
let target = std::env::var("TARGET").unwrap();

println!("cargo:rustc-check-cfg=cfg(armv6m)");
println!("cargo:rustc-check-cfg=cfg(armv7m)");
println!("cargo:rustc-check-cfg=cfg(armv7em)");
println!("cargo:rustc-check-cfg=cfg(armv8m)");
println!("cargo:rustc-check-cfg=cfg(armv8m_base)");
println!("cargo:rustc-check-cfg=cfg(armv8m_main)");

if target.starts_with("thumbv6m-") {
println!("cargo:rustc-cfg=armv6m");
} else if target.starts_with("thumbv7m-") {
Expand Down

0 comments on commit 27cd652

Please sign in to comment.