HomePhabricator

build: Allow to configure --with-sanitizers=fuzzer

Description

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Dec 27 2018, 14:19
FabienCommitted on Feb 10 2020, 13:28
FabienPushed on Feb 10 2020, 13:28
Reviewer
Restricted Project
Differential Revision
D4613: build: Allow to configure --with-sanitizers=fuzzer
Parents
rABC14b215f0d87a: tests: Use MakeUnique to construct objects owned by unique_ptrs
Branches
Unknown
Tags
Unknown