This commit is contained in:
finn 2022-12-19 20:50:24 -08:00
parent 2b5ec2ff11
commit 51eac504dc
2 changed files with 11 additions and 11 deletions

View file

@ -1,13 +1,13 @@
[build]
[target.aarch64-unknown-linux-gnu]
linker = "lld"
linker = "lld-13"
[target.arm-unknown-linux-gnueabi]
linker = "clang-13"
linker = "lld-13"
[target.arm-unknown-linux-gnueabihf]
linker = "clang-13"
linker = "lld-13"
[target.armv7-unknown-linux-gnueabihf]
linker = "clang-13"
linker = "lld-13"

View file

@ -3,24 +3,24 @@ set -exuo pipefail
apt-get update
PACKAGES=("git" "clang-13" "libclang-dev" "cmake" "make")
PACKAGES=("git" "clang-13" "libclang-dev" "lld-13" "cmake" "make")
case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
apt-get install -yq "${PACKAGES[@]}" crossbuild-essential-arm64 binutils-aarch64-linux-gnu # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
apt-get install -yqq "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross
;;
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
;;
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
;;
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
apt-get install -yq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
apt-get install -yqq "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
;;
x86_64-unknown-linux-musl)
apt-get install -yq "${PACKAGES[@]}" musl-tools
apt-get install -yqq "${PACKAGES[@]}" musl-tools
;;
*)
apt-get install -yq "${PACKAGES[@]}"
apt-get install -yqq "${PACKAGES[@]}"
;;
esac