ninja target bench-bitcoin should depend on bitcoin-bench
-
bitcoin-bench
builds the benchmark suite -
bench-bitcoin
runs the benchmark suite
If you run bench-bitcoin
without running bitcoin-bench
first, the following error will happen:
build % ninja bench-bitcoin
[0/1] cd /Users/dagurval/bitcoin-cash-node/build/src/bench && bitcoin-bench
/bin/sh: bitcoin-bench: command not found
FAILED: src/bench/CMakeFiles/bench-bitcoin
cd /Users/dagurval/bitcoin-cash-node/build/src/bench && bitcoin-bench
ninja: build stopped: subcommand failed.
We can probably make bench-bitcoin
depend on bitcoin-bench
to fix this.