summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--building/Dockerfile12
1 files changed, 10 insertions, 2 deletions
diff --git a/building/Dockerfile b/building/Dockerfile
index e036834cc1..a1a4548476 100644
--- a/building/Dockerfile
+++ b/building/Dockerfile
@@ -38,13 +38,21 @@ RUN dpkg --add-architecture arm64 && apt-get update -y && apt-get install -y \
libdbus-1-dev libdbus-1-dev:arm64 \
rpm \
protobuf-compiler \
+ # For cross-compiling/linting towards Windows
+ gcc-mingw-w64-x86-64 \
&& rm -rf /var/lib/apt/lists/*
# === Rust ===
-# Install latest stable Rust toolchain for both x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu
+# Install latest stable Rust toolchain for both x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu,
+# plus x86_64-pc-windows-gnu for Windows cross-compilation/linting
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
- sh -s -- --default-toolchain stable --profile minimal --target aarch64-unknown-linux-gnu -y
+ sh -s -- -y \
+ --default-toolchain stable \
+ --profile minimal \
+ --component clippy \
+ --target aarch64-unknown-linux-gnu \
+ --target x86_64-pc-windows-gnu
ENV PATH=/root/.cargo/bin:$PATH
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="aarch64-linux-gnu-gcc" \