From b78f22c8606e3a69433765650db03d9b339a03b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fahller?= Date: Fri, 25 Oct 2024 18:46:41 +0200 Subject: [PATCH] Add clang-tools when available --- clang/install-clang.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clang/install-clang.sh b/clang/install-clang.sh index f68ca75..9c51362 100755 --- a/clang/install-clang.sh +++ b/clang/install-clang.sh @@ -24,14 +24,15 @@ fetch_clang () { apt-add-repository "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-$VERSION main" apt-add-repository "deb-src http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-$VERSION main" apt update - apt install -y clang-$VERSION libc++-$VERSION-dev libc++abi-${VERSION}-dev ${FUZZER} - apt install -y clang-format-$VERSION || true - + apt install -y clang-${VERSION} libc++-${VERSION}-dev libc++abi-${VERSION}-dev ${FUZZER} + apt install -y clang-format-${VERSION} || true + apt install -y clang-tools-${VERSION} || true } apt install -y clang-${VERSION} ${LIBCXX} ${FUZZER}|| fetch_clang clang-${VERSION} apt install -y clang-format-${VERSION} || true +apt install -y clang-tools-${VERSION} || true for f in /usr/bin/llvm*-${VERSION} do ln -s $f `echo $f | sed "s/-${VERSION}//"`