use clang for all toolchains

Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.de>
This commit is contained in:
Kyle Copperfield 2022-10-27 08:04:27 +00:00 committed by finn
parent 7c6a13daf8
commit 3779696d1c
3 changed files with 6 additions and 24 deletions

View file

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

View file

@ -2,22 +2,4 @@
set -exuo pipefail
apt-get update
PACKAGES=("git" "cmake" "g++" "libclang-dev")
case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-aarch64-linux-gnu
;;
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi
;;
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf
;;
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf
;;
*)
apt-get install -y "${PACKAGES[@]}"
;;
esac
apt-get install -y git clang libclang-dev cmake make

View file

@ -5,4 +5,4 @@ if [[ "${TARGET}" == *musl ]]; then
flags="${flags} -C target-feature=-crt-static"
fi
echo "${flags}"
echo "${flags}"