From 4932d2376cc03c64eb82972824be673cdc2e0741 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 22 Sep 2020 18:26:53 +0200 Subject: Do not include layout tests in generated bindings We are generating the Rust bindings in src/ffi.rs using bindgen once for all platforms on an amd64 machine. These bindings previously included layout tests. But these tests fail on some 32-bit architecture. See this discussion for more information: https://lists.sr.ht/~ireas/nitrokey-rs-dev/%3C20200919182408.GA1513%40ireas.org%3E With this patch, we remove the layout tests from the generated bindings. Instead, we will add the option to re-generate the bindings, including the layout tests, during the build in the next patch. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3e48cf8..b5fec75 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ src/ffi.rs: ${LIBNITROKEY}/NK_C_API.h --whitelist-var "NK_.*" \ --whitelist-var "MAXIMUM_STR_REPLY_LENGTH" \ --with-derive-default \ + --no-layout-tests \ --output "$@" \ "$<" \ -- "-I${LIBNITROKEY}/libnitrokey" -- cgit v1.2.1