can't build wdm/kmdf/umdf clean template. #591
Answered
by
mtb0x1
mtb (mtb0x1)
asked this question in
Q&A
|
Hello, After creating a sample project with modifying the wdk-sys = "0.5.1" diff --git a/crates/wdk-sys/build.rs b/crates/wdk-sys/build.rs
index 2a73084..93d577f 100644
--- a/crates/wdk-sys/build.rs
+++ b/crates/wdk-sys/build.rs
@@ -248,6 +248,7 @@ fn generate_types(out_path: &Path, config: &Config) -> Result<(), ConfigError> {
let bindgen_builder = bindgen::Builder::wdk_default(config)?
.with_codegen_config(CodegenConfig::TYPES)
+ .layout_tests(false)
.header_contents("types-input.h", &header_contents);
trace!(bindgen_builder = ?bindgen_builder);what would be the right fix in my case ? (toolchain/ setup issue) ? cause I believe if the layout tests are wrong then, the binary produced likely to fail later in runtime. |
Answered by
mtb0x1
Dec 15, 2025
Replies: 1 comment 3 replies
|
Layout tests failing is definitely not good. It means the bindgen-generated bindings can cause issues with the offending types. We're not seeing this issue on our nightly CI runs, so this might be a toolchain version issue.
|
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I will switch to llvm 21, and as for llvm 22 I will wait for release version.