From a1ae9fb0f135f3f16e9cc7f1fca51d2b3a585506 Mon Sep 17 00:00:00 2001 From: DevMiner Date: Fri, 16 Aug 2024 19:45:39 +0200 Subject: [PATCH] fix: aarch64 builds --- Cross.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Cross.toml b/Cross.toml index fe1e7f88eab..f6e6e5862b0 100644 --- a/Cross.toml +++ b/Cross.toml @@ -1,12 +1,19 @@ [build] pre-build = [ - # Use azure mirrors for faster downloads. + # Use Azure mirrors for faster downloads "sed -i -e 's/archive.archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list", "sed -i -e 's/security.archive.ubuntu.com/azure.archive.ubuntu.com/' /etc/apt/sources.list", - "apt-get update && apt-get --assume-yes install libclang-8-dev clang-8", + + # Enable multiarch and install the necessary dependencies + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update", + "apt-get -y install libclang-8-dev clang-8 zlib1g-dev:$CROSS_DEB_ARCH", + "curl -sL https://sentry.io/get-cli/ | sh", ] +env.passthrough = ["CMAKE_TOOLCHAIN_FILE_aarch64_unknown_linux_musl"] [target.aarch64-unknown-linux-gnu] # We're using a nightly `cross`, let's still use a stable image. -image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5" +image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:edge" +env.passthrough = ["CMAKE_TOOLCHAIN_FILE_aarch64_unknown_linux_gnu"]