Skip to content

Commit

Permalink
Added rustc-check-cfg to build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
taks committed Jul 26, 2024
1 parent cf6c435 commit bcf2e1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
fn main() {
embuild::espidf::sysenv::output();

println!("cargo::rustc-check-cfg=cfg(esp32)");
println!("cargo::rustc-check-cfg=cfg(esp32c3)");

println!("cargo::rustc-check-cfg=cfg(esp_idf_soc_esp_nimble_controller)");
println!("cargo::rustc-check-cfg=cfg(esp_idf_bt_nimble_ext_adv)");

println!("cargo::rustc-check-cfg=cfg(esp_idf_version_major, values(\"4\", \"5\"))");
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_minor, values(\"2\"))");
println!("cargo::rustc-check-cfg=cfg(esp_idf_version_patch, values(\"0\"))");
}

0 comments on commit bcf2e1e

Please sign in to comment.