Skip to content

Commit

Permalink
Explicitly install libc++-dev for clang
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Feb 10, 2024
1 parent 7097ca7 commit 2bf06dc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion clang/install-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ else
FUZZER=""
fi

if [ $MAJOR -ge 18 ]
then
LIBCXX="libc++-${VERSION}-dev"
else
LIBCXX=""
fi

fetch_clang () {
source /etc/lsb-release
apt install -y software-properties-common
Expand All @@ -23,7 +30,8 @@ fetch_clang () {

}

apt install -y clang-${VERSION} ${FUZZER}|| fetch_clang clang-${VERSION}

apt install -y clang-${VERSION} ${LIBCXX} ${FUZZER}|| fetch_clang clang-${VERSION}
for f in /usr/bin/llvm*-${VERSION}
do
ln -s $f `echo $f | sed "s/-${VERSION}//"`
Expand Down

0 comments on commit 2bf06dc

Please sign in to comment.