Skip to content

Commit 75c040f

Browse files
committed
delete_nonreduced_fuzz_inputs: use llvm 18
1 parent f9b8456 commit 75c040f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

delete_nonreduced_fuzz_inputs.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ apt install -y \
2020
git \
2121
build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 \
2222
libsqlite3-dev libevent-dev libboost-dev \
23-
clang llvm
23+
lsb-release wget software-properties-common gnupg
24+
25+
export LLVM_VERSION=18
26+
wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh
27+
./llvm.sh $LLVM_VERSION all
28+
ln -s $(which llvm-symbolizer-$LLVM_VERSION) /usr/bin/llvm-symbolizer
2429

2530
git clone --depth=1 https://github.com/bitcoin-core/qa-assets.git
2631
(
@@ -40,7 +45,7 @@ git clone --depth=1 https://github.com/bitcoin/bitcoin.git
4045
for sanitizer in {"fuzzer","fuzzer,address,undefined,integer"}; do
4146
echo "Adding reduced seeds for sanitizer=${sanitizer}"
4247

43-
./configure CC=clang CXX=clang++ --enable-fuzz --with-sanitizers="${sanitizer}"
48+
./configure CC=clang-$LLVM_VERSION CXX=clang++-$LLVM_VERSION --enable-fuzz --with-sanitizers="${sanitizer}"
4449
make clean
4550
make -j $(nproc)
4651

0 commit comments

Comments
 (0)