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
Branch
cmake_link_fuzz_test_runner
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 13695
Build 27412: Build Diffbuild-debug · lint-circular-dependencies · build-clang-tidy · build-without-wallet · build-diff · build-clang
Build 27411: arc lint + arc unit