@@ -52,15 +52,15 @@ For macOS you may need to ignore x86 compilation checks when running `make`:
52
52
To build Bitcoin Core using AFL instrumentation (this assumes that the
53
53
` AFLPATH ` was set as above):
54
54
```
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++
56
56
export AFL_HARDEN=1
57
57
make
58
58
```
59
59
60
60
If you are using clang you will need to substitute ` afl-gcc ` with ` afl-clang `
61
61
and ` afl-g++ ` with ` afl-clang++ ` , so the first line above becomes:
62
62
```
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++
64
64
```
65
65
66
66
We 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).
102
102
To build all fuzz targets with libFuzzer, run
103
103
104
104
```
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++
106
106
make
107
107
```
108
108
@@ -134,5 +134,5 @@ clang does not come first in your path.
134
134
135
135
Full configure that was tested on macOS Catalina with ` brew ` installed ` llvm ` :
136
136
```
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
138
138
```
0 commit comments