23 lines
755 B
TOML
23 lines
755 B
TOML
|
|
# Cargo configuration for Archipelago cross-compilation
|
||
|
|
#
|
||
|
|
# Native builds (x86_64 on x86_64) work automatically.
|
||
|
|
# ARM64 cross-compilation requires the aarch64-unknown-linux-gnu toolchain.
|
||
|
|
#
|
||
|
|
# Install the target:
|
||
|
|
# rustup target add aarch64-unknown-linux-gnu
|
||
|
|
#
|
||
|
|
# Install the cross-linker (Debian/Ubuntu):
|
||
|
|
# sudo apt install gcc-aarch64-linux-gnu
|
||
|
|
#
|
||
|
|
# Build for ARM64:
|
||
|
|
# cargo build --release --target aarch64-unknown-linux-gnu
|
||
|
|
|
||
|
|
[target.aarch64-unknown-linux-gnu]
|
||
|
|
linker = "aarch64-linux-gnu-gcc"
|
||
|
|
|
||
|
|
# OpenSSL cross-compilation environment (set before building)
|
||
|
|
# These are automatically set by the build scripts but documented here:
|
||
|
|
# OPENSSL_DIR=/usr/aarch64-linux-gnu
|
||
|
|
# PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
|
||
|
|
# PKG_CONFIG_ALLOW_CROSS=1
|