build: Allow to configure --with-sanitizers=fuzzer
Summary:
Backport of core PR15047:
https://github.com/bitcoin/bitcoin/pull/15047/files
Depends on D4588.
Test Plan:
./configure --disable-ccache --with-sanitizers=fuzzer,address CC=clang CXX=clang++ cd src make test/test_bitcoin_fuzzy mkdir -p buildFuzzer cd buildFuzzer cmake -GNinja .. \ -CCACHE=OFF \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DENABLE_SANITIZERS=fuzzer,address ninja test_bitcoin_fuzzy
Reviewers: #bitcoin_abc, deadalnix, jasonbcox
Reviewed By: #bitcoin_abc, jasonbcox
Subscribers: jasonbcox
Differential Revision: https://reviews.bitcoinabc.org/D4613