aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-22 18:26:53 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-22 18:26:53 +0200
commit4932d2376cc03c64eb82972824be673cdc2e0741 (patch)
treed1690533683e8fe33be00e4b1eb32f9363f207b4 /Makefile
parent7944af959ca0b48f0e8ea5c506e801e07a6b8124 (diff)
downloadnitrokey-sys-rs-4932d2376cc03c64eb82972824be673cdc2e0741.tar.gz
nitrokey-sys-rs-4932d2376cc03c64eb82972824be673cdc2e0741.tar.bz2
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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"