Skip to content

Commit

Permalink
fix: aarch64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Aug 16, 2024
1 parent 83be26a commit a1ae9fb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit a1ae9fb

Please sign in to comment.