Skip to content

Commit

Permalink
feat: configure cross to support x86_64 and aarch64 for linux/musl (#674
Browse files Browse the repository at this point in the history
)
  • Loading branch information
carlocorradini authored Aug 20, 2023
1 parent 29b7749 commit 3c40444
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
[target.x86_64-unknown-linux-musl]
image = "clux/muslrust:stable"
# N.B. The following dependencies are required for all targets to be built: 'qemu' and 'qemu-user-static'

[target.x86_64-unknown-linux-gnu]
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH"
]

[target.x86_64-unknown-linux-musl]
image.name = "alpine:edge"
image.toolchain = ["x86_64-unknown-linux-musl"]
pre-build = ["apk add --no-cache build-base openssl-dev"]

[target.aarch64-unknown-linux-musl]
image.name = "alpine:edge"
image.toolchain = ["aarch64-unknown-linux-musl"]
pre-build = ["apk add --no-cache build-base openssl-dev"]

0 comments on commit 3c40444

Please sign in to comment.