diff --git a/wayland-backend/build.rs b/wayland-backend/build.rs index 76fe07af047..877b9fcdbb9 100644 --- a/wayland-backend/build.rs +++ b/wayland-backend/build.rs @@ -1,4 +1,6 @@ fn main() { + println!("cargo:rustc-check-cfg=cfg(coverage)"); + if std::env::var("CARGO_FEATURE_LOG").ok().is_some() { // build the client shim cc::Build::new().file("src/sys/client_impl/log_shim.c").compile("log_shim_client"); diff --git a/wayland-client/build.rs b/wayland-client/build.rs new file mode 100644 index 00000000000..b7469d193cf --- /dev/null +++ b/wayland-client/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo:rustc-check-cfg=cfg(coverage)"); +}