2022-12-22 15:52:07 +01:00
|
|
|
# Configuration for cross-rs: https://github.com/cross-rs/cross
|
|
|
|
# Run cross-rs like this:
|
2023-08-10 07:08:35 +02:00
|
|
|
# cross build --target aarch64-unknown-linux-gnu --release
|
|
|
|
# or
|
|
|
|
# cross build --target aarch64-unknown-linux-musl --release --features=static-link-openssl
|
2022-12-22 15:52:07 +01:00
|
|
|
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
2023-08-10 07:08:35 +02:00
|
|
|
pre-build = [
|
|
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
|
|
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH clang"
|
|
|
|
]
|
2022-12-22 15:52:07 +01:00
|
|
|
|
2023-08-10 07:08:35 +02:00
|
|
|
# NOTE: for musl you will need to build with --features=static-link-openssl
|
2022-12-22 15:52:07 +01:00
|
|
|
[target.aarch64-unknown-linux-musl]
|
2023-08-10 07:08:35 +02:00
|
|
|
pre-build = [
|
|
|
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
|
|
|
"apt-get update && apt-get install --assume-yes clang"
|
|
|
|
]
|