Skip to content

Commit 3c40444

Browse files
authoredAug 20, 2023
feat: configure cross to support x86_64 and aarch64 for linux/musl (#674)
1 parent 29b7749 commit 3c40444

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

‎Cross.toml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
[target.x86_64-unknown-linux-musl]
2-
image = "clux/muslrust:stable"
1+
# N.B. The following dependencies are required for all targets to be built: 'qemu' and 'qemu-user-static'
32

4-
[target.x86_64-unknown-linux-gnu]
3+
[build]
54
pre-build = [
65
"dpkg --add-architecture $CROSS_DEB_ARCH",
76
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH"
87
]
8+
9+
[target.x86_64-unknown-linux-musl]
10+
image.name = "alpine:edge"
11+
image.toolchain = ["x86_64-unknown-linux-musl"]
12+
pre-build = ["apk add --no-cache build-base openssl-dev"]
13+
14+
[target.aarch64-unknown-linux-musl]
15+
image.name = "alpine:edge"
16+
image.toolchain = ["aarch64-unknown-linux-musl"]
17+
pre-build = ["apk add --no-cache build-base openssl-dev"]

0 commit comments

Comments
 (0)
Please sign in to comment.