From 74e9e7fcbfc0ba665761798dd15f4b007ac8d206 Mon Sep 17 00:00:00 2001 From: finn Date: Mon, 19 Dec 2022 19:41:44 -0800 Subject: [PATCH] clang-13 --- .cargo/config | 8 ++++---- prepare-env.sh | 2 +- rustflags.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.cargo/config b/.cargo/config index 390f359..707f162 100644 --- a/.cargo/config +++ b/.cargo/config @@ -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" diff --git a/prepare-env.sh b/prepare-env.sh index e56887b..c5ef5c3 100755 --- a/prepare-env.sh +++ b/prepare-env.sh @@ -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 diff --git a/rustflags.sh b/rustflags.sh index 214fe01..01bcec1 100755 --- a/rustflags.sh +++ b/rustflags.sh @@ -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"