Skip to content

Commit 2bdccff

Browse files
committed
libosdp-sys: Remove layout checks from generated bindings
The generated bindings have x86_64 specific memory layout assertions. This does not work for all platforms LibOSDP targets. So let's disable layout assertions for the generated bindings. Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
1 parent 4a41c81 commit 2bdccff

2 files changed

Lines changed: 1 addition & 320 deletions

File tree

libosdp-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ fn main() -> Result<()> {
199199
}
200200
let bindings = bindgen::Builder::default()
201201
.use_core()
202+
.layout_tests(false)
202203
.header("vendor/include/osdp.h")
203204
.clang_args(args)
204205
.generate()

0 commit comments

Comments
 (0)