Skip to content

Commit

Permalink
refactor: add support for rustc-check-cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed May 7, 2024
1 parent bca653f commit be0f4c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions general/echo/kmdf/driver/DriverSync/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@

fn main() -> Result<(), wdk_build::ConfigError> {
wdk_build::Config::from_env_auto()?.configure_binary_build();

// FIXME: This is a workaround that can be removed once WDR adds support for rustc-check-cfg
println!("cargo::rustc-check-cfg=cfg(nightly_toolchain)");

Ok(())
}

0 comments on commit be0f4c1

Please sign in to comment.