Page MenuHomePhabricator

[CMAKE] Link the fuzzer test_runner.py when building a fuzz target
ClosedPublic

Authored by Fabien on Oct 27 2020, 14:03.

Details

Summary

The script is linked to the build directory when building all, but not
when building bitcoin-fuzzers or any other fuzz target. This diffs
builds a list of the fuzz targets and make them depend on the link so
that it is created as needed.

Test Plan
cmake -GNinja .. \
  -DCMAKE_C_COMPILER=clang \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DENABLE_SANITIZERS=fuzzer
ninja bitcoin-fuzzers # Or any fuzz-* target

Check the test/fuzz/test_runner.py script is linked to the build tree.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable