@@ -52,15 +52,15 @@ For macOS you may need to ignore x86 compilation checks when running `make`:
5252To build Bitcoin Core using AFL instrumentation (this assumes that the
5353` AFLPATH ` was set as above):
5454```
55- ./configure --disable-ccache --disable- shared --enable-tests --enable-fuzz CC=${AFLPATH}/afl-gcc CXX=${AFLPATH}/afl-g++
55+ ./configure --disable-shared --enable-tests --enable-fuzz CC=${AFLPATH}/afl-gcc CXX=${AFLPATH}/afl-g++
5656export AFL_HARDEN=1
5757make
5858```
5959
6060If you are using clang you will need to substitute ` afl-gcc ` with ` afl-clang `
6161and ` afl-g++ ` with ` afl-clang++ ` , so the first line above becomes:
6262```
63- ./configure --disable-ccache --disable- shared --enable-tests --enable-fuzz CC=${AFLPATH}/afl-clang CXX=${AFLPATH}/afl-clang++
63+ ./configure --disable-shared --enable-tests --enable-fuzz CC=${AFLPATH}/afl-clang CXX=${AFLPATH}/afl-clang++
6464```
6565
6666We disable ccache because we don't want to pollute the ccache with instrumented
@@ -102,7 +102,7 @@ libFuzzer is needed (all found in the `compiler-rt` runtime libraries package).
102102To build all fuzz targets with libFuzzer, run
103103
104104```
105- ./configure --disable-ccache -- enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=clang CXX=clang++
105+ ./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=clang CXX=clang++
106106make
107107```
108108
@@ -134,5 +134,5 @@ clang does not come first in your path.
134134
135135Full configure that was tested on macOS Catalina with ` brew ` installed ` llvm ` :
136136```
137- ./configure --disable-ccache -- enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ --disable-asm
137+ ./configure --enable-fuzz --with-sanitizers=fuzzer,address,undefined CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ --disable-asm
138138```
0 commit comments