From 2bf06dcf215c43c3c37dfb48481a79824b7fa71d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fahller?= Date: Sat, 10 Feb 2024 19:33:43 +0100 Subject: [PATCH] Explicitly install libc++-dev for clang --- clang/install-clang.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clang/install-clang.sh b/clang/install-clang.sh index 40b8ed8..0d5fb19 100755 --- a/clang/install-clang.sh +++ b/clang/install-clang.sh @@ -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 @@ -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}//"`