mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 11:36:37 +00:00
use clang for all toolchains
Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.de>
This commit is contained in:
parent
7c6a13daf8
commit
3779696d1c
3 changed files with 6 additions and 24 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,4 +5,4 @@ if [[ "${TARGET}" == *musl ]]; then
|
|||
flags="${flags} -C target-feature=-crt-static"
|
||||
fi
|
||||
|
||||
echo "${flags}"
|
||||
echo "${flags}"
|
||||
|
|
Loading…
Reference in a new issue