Silence unexpected-cfgs
This commit is contained in:
parent
4815a9efaf
commit
509d5efe2b
2 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
3
library/stdarch/crates/core_arch/build.rs
Normal file
3
library/stdarch/crates/core_arch/build.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("cargo::rustc-check-cfg=cfg(stdarch_intel_sde)");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue