Skip to content

Commit

Permalink
Add clang-tools when available
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Oct 25, 2024
1 parent 4f20009 commit b78f22c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clang/install-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}//"`
Expand Down

0 comments on commit b78f22c

Please sign in to comment.