From 63a43733f46ff98c922f7033fbf377595296d0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fahller?= Date: Wed, 22 May 2024 21:18:36 +0200 Subject: [PATCH] install clang-format, if available --- clang/install-clang.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/install-clang.sh b/clang/install-clang.sh index 0d5fb19..938a525 100755 --- a/clang/install-clang.sh +++ b/clang/install-clang.sh @@ -27,11 +27,13 @@ fetch_clang () { 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} ${LIBCXX} ${FUZZER}|| fetch_clang clang-${VERSION} +apt install -y clang-format-${VERSION} || true for f in /usr/bin/llvm*-${VERSION} do ln -s $f `echo $f | sed "s/-${VERSION}//"`