Silence unexpected-cfgs

This commit is contained in:
Luca Barbato 2024-05-06 12:39:15 +00:00 committed by Amanieu d'Antras
parent 4815a9efaf
commit 509d5efe2b
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,7 @@ use std::env;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo::rustc-check-cfg=cfg(optimized)");
let opt_level = env::var("OPT_LEVEL")
.ok()
.and_then(|s| s.parse().ok())

View file

@ -0,0 +1,3 @@
fn main() {
println!("cargo::rustc-check-cfg=cfg(stdarch_intel_sde)");
}