This commit is contained in:
finn 2022-12-13 17:51:56 -08:00
parent 270aff0ef6
commit 5c3f521070

View file

@ -8,17 +8,19 @@ apt-get install -y git clang libclang-dev cmake make
PACKAGES=("git" "clang" "libclang-dev" "cmake" "make") PACKAGES=("git" "clang" "libclang-dev" "cmake" "make")
case "${TARGET}" in case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl) aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-aarch64-linux-gnu libc6-dev-arm64-cross apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-aarch64-linux-gnu linux-libc-dev-arm64-cross
;; ;;
arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi) arm-unknown-linux-gnueabi|arm-unknown-linux-musleabi)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabi linux-libc-dev-armel-cross
;; ;;
arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf) arm-unknown-linux-gnueabihf|arm-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armhf-cross
;; ;;
armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf) armv7-unknown-linux-gnueabihf|armv7-unknown-linux-musleabihf)
apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf apt-get install -y "${PACKAGES[@]}" {cpp,g++,gcc}-arm-linux-gnueabihf linux-libc-dev-armel-cross
;; ;;
x86_64-unknown-linux-musl)
apt-get install -y "${PACKAGES[@]}" musl-tools
*) *)
apt-get install -y "${PACKAGES[@]}" apt-get install -y "${PACKAGES[@]}"
;; ;;