Skip to content

Commit 069269c

Browse files
committed
Stop warning about these non-feature cfgs.
1 parent b7101e5 commit 069269c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cortex-m/build.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ fn main() {
2828
println!("cargo:rustc-link-search={}", out_dir.display());
2929
}
3030

31+
println!("cargo:rustc-check-cfg=cfg(armv6m)");
32+
println!("cargo:rustc-check-cfg=cfg(armv7em)");
33+
println!("cargo:rustc-check-cfg=cfg(armv7m)");
34+
println!("cargo:rustc-check-cfg=cfg(armv7m)");
35+
println!("cargo:rustc-check-cfg=cfg(armv8m)");
36+
println!("cargo:rustc-check-cfg=cfg(armv8m)");
37+
println!("cargo:rustc-check-cfg=cfg(armv8m_base)");
38+
println!("cargo:rustc-check-cfg=cfg(armv8m_main)");
39+
println!("cargo:rustc-check-cfg=cfg(cortex_m)");
40+
println!("cargo:rustc-check-cfg=cfg(has_fpu)");
41+
println!("cargo:rustc-check-cfg=cfg(native)");
42+
3143
if target.starts_with("thumbv6m-") {
3244
println!("cargo:rustc-cfg=cortex_m");
3345
println!("cargo:rustc-cfg=armv6m");

0 commit comments

Comments
 (0)