mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
78aada7027
Core is supposed to support all Rust versions above MSRV, there is no need to use the same toolchain for the core across all platforms.
10 lines
346 B
Bash
Executable File
10 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Installs Rust cross-compilation toolchains for all supported architectures.
|
|
#
|
|
set -e
|
|
TARGETS="armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android"
|
|
RUSTUP_TOOLCHAIN=$(cat "$(dirname "$0")/rust-toolchain")
|
|
rustup install "$RUSTUP_TOOLCHAIN"
|
|
rustup target add $TARGETS --toolchain "$RUSTUP_TOOLCHAIN"
|