-
|
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. |
Beta Was this translation helpful? Give feedback.
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.
|
Beta Was this translation helpful? Give feedback.
I will switch to llvm 21, and as for llvm 22 I will wait for release version.