diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-22 18:26:53 +0200 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2020-09-22 18:26:53 +0200 |
commit | 4932d2376cc03c64eb82972824be673cdc2e0741 (patch) | |
tree | d1690533683e8fe33be00e4b1eb32f9363f207b4 /Makefile | |
parent | 7944af959ca0b48f0e8ea5c506e801e07a6b8124 (diff) | |
download | nitrokey-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-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |