From e966554ffbd36d5406fc7c79e64dc8a1890ad090 Mon Sep 17 00:00:00 2001 From: Albin Date: Wed, 18 Sep 2024 11:24:12 +0200 Subject: [PATCH] Add cbindgen to android build container --- android/docker/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/docker/Dockerfile b/android/docker/Dockerfile index a38ce4f7c8fb..6c910b08002f 100644 --- a/android/docker/Dockerfile +++ b/android/docker/Dockerfile @@ -111,4 +111,11 @@ RUN patch -p1 -f -N -r- -d /usr/local/go < /tmp/goruntime-boottime-over-monotoni # Add rust targets RUN rustup target add x86_64-linux-android i686-linux-android aarch64-linux-android armv7-linux-androideabi +# Install cbindgen to address maybenot.h (checked in) sometimes needing to be +# re-generated due to how `make` looks at last-modifications while git neither +# stores nor consistently sets modification metadata on file checkout. +# This is an intermediate solution that will be further improved as part of +# issue: DROID-1328. +RUN cargo install --force cbindgen --version "0.26.0" && rm -rf ~/.cargo/registry + WORKDIR /build