Skip to content

Commit 7c36fe6

Browse files
committed
Specify has_coverage_attribute as a known cfg
1 parent 5aab429 commit 7c36fe6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fn main() {
3535
if let Some(true) = version_check::supports_feature("coverage_attribute") {
3636
println!("cargo:rustc-cfg=has_coverage_attribute");
3737
}
38+
println!("cargo:rustc-check-cfg=cfg(has_coverage_attribute)");
3839
generate_self_schema();
3940
println!("cargo:rustc-env=PROFILE={}", std::env::var("PROFILE").unwrap());
4041
}

0 commit comments

Comments
 (0)