This commit is contained in:
finn 2022-12-19 19:41:44 -08:00
parent 34f076e188
commit 74e9e7fcbf
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -3,7 +3,7 @@ set -exuo pipefail
apt-get update
PACKAGES=("git" "clang" "libclang-dev" "cmake" "make")
PACKAGES=("git" "clang-13" "libclang-dev" "cmake" "make")
case "${TARGET}" in
aarch64-unknown-linux-gnu|aarch64-unknown-linux-musl)
apt-get install -yq "${PACKAGES[@]}" crossbuild-essential-arm64 # {cpp,g++,gcc}-aarch64-linux-gnu libc-dev-arm64-cross

View file

@ -1,5 +1,5 @@
#!/bin/bash
flags="-C link-arg=-s"
flags="-C link-arg=-s -C link-arg=-fuse-ld=lld"
if [[ "${TARGET}" == *musl ]]; then
flags="${flags} -C target-feature=-crt-static"