Skip to content

Commit 7463dc7

Browse files
lu-zeroAmanieu
authored andcommitted
Silence unexpected-cfgs
1 parent 653c5d7 commit 7463dc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/assert-instr-macro/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::env;
22

33
fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
5+
println!("cargo::rustc-check-cfg=cfg(optimized)");
56
let opt_level = env::var("OPT_LEVEL")
67
.ok()
78
.and_then(|s| s.parse().ok())

crates/core_arch/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("cargo::rustc-check-cfg=cfg(stdarch_intel_sde)");
3+
}

0 commit comments

Comments
 (0)