Skip to content

Commit 502d472

Browse files
committed
Merge bitcoin#31161: cmake: Set top-level target output locations
568fcdd scripted-diff: Adjust documentation per top-level target output location (Hennadii Stepanov) 026bb22 cmake: Set top-level target output locations (Hennadii Stepanov) Pull request description: This PR sets the target output locations to the `bin` and `lib` subdirectories within the build tree, creating a directory structure that mirrors that of the installed targets. This approach is widely adopted by the large projects, such as [LLVM](https://github.com/llvm/llvm-project/blob/e146c1867e8decfd423034f63a3a863733e03f04/lldb/cmake/modules/LLDBStandalone.cmake#L128-L130): ```cmake set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}) ``` The `libsecp256k1` project has also recently [adopted](bitcoin-core/secp256k1#1553) this approach. With this PR, all binaries are conveniently located. For example, run: ``` $ ./build/bin/fuzz ``` instead of: ``` $ ./build/src/test/fuzz/fuzz ``` On Windows, all required DLLs are now located in the same directory as the executables, allowing to run `bitcoin-chainstate.exe` (which loads `bitcoinkernel.dll`) without the need to copy DLLs or modify the `PATH` variable. The idea was briefly discussed among the build team during the recent CoreDev meeting. --- **Warning**: This PR changes build locations of newly built executables like `bitcoind` and `test_bitcoin` from `src/` to `bin/` without deleting previously built executables. A clean build is recommended to avoid accidentally running old binaries. ACKs for top commit: theStack: Light re-ACK 568fcdd ryanofsky: Code review ACK 568fcdd. Only change since last review was rebasing. I'm ok with this PR in its current form if other developers are happy with it. I just personally think it is inappropriate to \*silently\* break an everyday developer workflow like `git pull; make bitcoind`. I wouldn't have a problem with this PR if it triggered an explicit error, or if the problem was limited to less common workflows like changing cmake options in an existing build. TheCharlatan: Re-ACK 568fcdd theuni: ACK 568fcdd Tree-SHA512: 1aa5ecd3cd49bd82f1dcc96c8e171d2d19c58aec8dade4bc329df89311f9e50cbf6cf021d004c58a0e1016c375b0fa348ccd52761bcdd179c2d1e61c105e3b9f
2 parents e38f09b + 568fcdd commit 502d472

27 files changed

+164
-145
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ jobs:
238238
if: matrix.job-type == 'standard'
239239
working-directory: build
240240
env:
241-
BITCOIND: '${{ github.workspace }}\build\src\Release\bitcoind.exe'
242-
BITCOINCLI: '${{ github.workspace }}\build\src\Release\bitcoin-cli.exe'
243-
BITCOINUTIL: '${{ github.workspace }}\build\src\Release\bitcoin-util.exe'
244-
BITCOINWALLET: '${{ github.workspace }}\build\src\Release\bitcoin-wallet.exe'
241+
BITCOIND: '${{ github.workspace }}\build\bin\Release\bitcoind.exe'
242+
BITCOINCLI: '${{ github.workspace }}\build\bin\Release\bitcoin-cli.exe'
243+
BITCOINUTIL: '${{ github.workspace }}\build\bin\Release\bitcoin-util.exe'
244+
BITCOINWALLET: '${{ github.workspace }}\build\bin\Release\bitcoin-wallet.exe'
245245
TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
246246
shell: cmd
247247
run: py -3 test\functional\test_runner.py --jobs %NUMBER_OF_PROCESSORS% --ci --quiet --tmpdirprefix=%RUNNER_TEMP% --combinedlogslen=99999999 --timeout-factor=%TEST_RUNNER_TIMEOUT_FACTOR% %TEST_RUNNER_EXTRA%
@@ -258,7 +258,7 @@ jobs:
258258
if: matrix.job-type == 'fuzz'
259259
working-directory: build
260260
env:
261-
BITCOINFUZZ: '${{ github.workspace }}\build\src\test\fuzz\Release\fuzz.exe'
261+
BITCOINFUZZ: '${{ github.workspace }}\build\bin\Release\fuzz.exe'
262262
shell: cmd
263263
run: |
264264
py -3 test\fuzz\test_runner.py --par %NUMBER_OF_PROCESSORS% --loglevel DEBUG %RUNNER_TEMP%\qa-assets\fuzz_corpora

CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,6 @@ endif()
615615
add_subdirectory(test)
616616
add_subdirectory(doc)
617617

618-
include(cmake/crc32c.cmake)
619-
include(cmake/leveldb.cmake)
620-
include(cmake/minisketch.cmake)
621618
add_subdirectory(src)
622619

623620
include(cmake/tests.cmake)

contrib/devtools/check-deps.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ declare -A LIBS
88
LIBS[cli]="libbitcoin_cli.a"
99
LIBS[common]="libbitcoin_common.a"
1010
LIBS[consensus]="libbitcoin_consensus.a"
11-
LIBS[crypto]="crypto/libbitcoin_crypto.a"
11+
LIBS[crypto]="libbitcoin_crypto.a"
1212
LIBS[node]="libbitcoin_node.a"
13-
LIBS[util]="util/libbitcoin_util.a"
14-
LIBS[wallet]="wallet/libbitcoin_wallet.a"
13+
LIBS[util]="libbitcoin_util.a"
14+
LIBS[wallet]="libbitcoin_wallet.a"
1515

1616
# Declare allowed dependencies "X Y" where X is allowed to depend on Y. This
1717
# list is taken from doc/design/libraries.md.
@@ -187,7 +187,7 @@ fi
187187
# shellcheck disable=SC2046
188188
cmake --build "$BUILD_DIR" -j"$(nproc)" -t $(lib_targets)
189189
TEMP_DIR="$(mktemp -d)"
190-
cd "$BUILD_DIR/src"
190+
cd "$BUILD_DIR/lib"
191191
extract_symbols "$TEMP_DIR"
192192
if check_libraries "$TEMP_DIR"; then
193193
echo "Success! No unexpected dependencies were detected."

contrib/devtools/gen-bitcoin-conf.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export LC_ALL=C
77
TOPDIR=${TOPDIR:-$(git rev-parse --show-toplevel)}
88
BUILDDIR=${BUILDDIR:-$TOPDIR/build}
9-
BINDIR=${BINDIR:-$BUILDDIR/src}
9+
BINDIR=${BINDIR:-$BUILDDIR/bin}
1010
BITCOIND=${BITCOIND:-$BINDIR/bitcoind}
1111
SHARE_EXAMPLES_DIR=${SHARE_EXAMPLES_DIR:-$TOPDIR/share/examples}
1212
EXAMPLE_CONF_FILE=${EXAMPLE_CONF_FILE:-$SHARE_EXAMPLES_DIR/bitcoin.conf}

contrib/devtools/gen-manpages.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import argparse
1010

1111
BINARIES = [
12-
'src/bitcoind',
13-
'src/bitcoin-cli',
14-
'src/bitcoin-tx',
15-
'src/bitcoin-wallet',
16-
'src/bitcoin-util',
17-
'src/qt/bitcoin-qt',
12+
'bin/bitcoind',
13+
'bin/bitcoin-cli',
14+
'bin/bitcoin-tx',
15+
'bin/bitcoin-wallet',
16+
'bin/bitcoin-util',
17+
'bin/bitcoin-qt',
1818
]
1919

2020
parser = argparse.ArgumentParser(

contrib/signet/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ miner
2424
You will first need to pick a difficulty target. Since signet chains are primarily protected by a signature rather than proof of work, there is no need to spend as much energy as possible mining, however you may wish to choose to spend more time than the absolute minimum. The calibrate subcommand can be used to pick a target appropriate for your hardware, eg:
2525

2626
MINER="./contrib/signet/miner"
27-
GRIND="./build/src/bitcoin-util grind"
27+
GRIND="./build/bin/bitcoin-util grind"
2828
$MINER calibrate --grind-cmd="$GRIND"
2929
nbits=1e00f403 for 25s average mining time
3030

3131
It defaults to estimating an nbits value resulting in 25s average time to find a block, but the --seconds parameter can be used to pick a different target, or the --nbits parameter can be used to estimate how long it will take for a given difficulty.
3232

3333
To mine the first block in your custom chain, you can run:
3434

35-
CLI="./build/src/bitcoin-cli -conf=mysignet.conf"
35+
CLI="./build/bin/bitcoin-cli -conf=mysignet.conf"
3636
ADDR=$($CLI -signet getnewaddress)
3737
NBITS=1e00f403
3838
$MINER --cli="$CLI" generate --grind-cmd="$GRIND" --address="$ADDR" --nbits=$NBITS

contrib/tracing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ In a different terminal, starting Bitcoin Core in SigNet mode and with
188188
re-indexing enabled.
189189

190190
```
191-
$ ./build/src/bitcoind -signet -reindex
191+
$ ./build/bin/bitcoind -signet -reindex
192192
```
193193

194194
This produces the following output.

contrib/tracing/connectblock_benchmark.bt

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
This script requires a 'bitcoind' binary compiled with eBPF support and the
1818
'validation:block_connected' USDT. By default, it's assumed that 'bitcoind' is
19-
located in './build/src/bitcoind'. This can be modified in the script below.
19+
located in './build/bin/bitcoind'. This can be modified in the script below.
2020

2121
EXAMPLES:
2222

@@ -67,7 +67,7 @@ BEGIN
6767
connected block is between the start and end height (or the end height is
6868
unset).
6969
*/
70-
usdt:./build/src/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2 || $2 == 0 )/
70+
usdt:./build/bin/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2 || $2 == 0 )/
7171
{
7272
$height = arg1;
7373
$transactions = arg2;
@@ -102,7 +102,7 @@ usdt:./build/src/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2
102102
blocks where the time it took to connect the block is above the
103103
<logging threshold in ms>.
104104
*/
105-
usdt:./build/src/bitcoind:validation:block_connected / (uint64) arg5 / 1e6 > $3 /
105+
usdt:./build/bin/bitcoind:validation:block_connected / (uint64) arg5 / 1e6 > $3 /
106106
{
107107
$hash = arg0;
108108
$height = (int32) arg1;

contrib/tracing/log_p2p_connections.bt

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN
55
printf("Logging opened, closed, misbehaving, and evicted P2P connections\n")
66
}
77

8-
usdt:./build/src/bitcoind:net:inbound_connection
8+
usdt:./build/bin/bitcoind:net:inbound_connection
99
{
1010
$id = (int64) arg0;
1111
$addr = str(arg1);
@@ -15,7 +15,7 @@ usdt:./build/src/bitcoind:net:inbound_connection
1515
printf("INBOUND conn from %s: id=%ld, type=%s, network=%d, total=%d\n", $addr, $id, $conn_type, $network, $existing);
1616
}
1717

18-
usdt:./build/src/bitcoind:net:outbound_connection
18+
usdt:./build/bin/bitcoind:net:outbound_connection
1919
{
2020
$id = (int64) arg0;
2121
$addr = str(arg1);
@@ -25,7 +25,7 @@ usdt:./build/src/bitcoind:net:outbound_connection
2525
printf("OUTBOUND conn to %s: id=%ld, type=%s, network=%d, total=%d\n", $addr, $id, $conn_type, $network, $existing);
2626
}
2727

28-
usdt:./build/src/bitcoind:net:closed_connection
28+
usdt:./build/bin/bitcoind:net:closed_connection
2929
{
3030
$id = (int64) arg0;
3131
$addr = str(arg1);
@@ -34,7 +34,7 @@ usdt:./build/src/bitcoind:net:closed_connection
3434
printf("CLOSED conn to %s: id=%ld, type=%s, network=%d, established=%ld\n", $addr, $id, $conn_type, $network, arg4);
3535
}
3636

37-
usdt:./build/src/bitcoind:net:evicted_inbound_connection
37+
usdt:./build/bin/bitcoind:net:evicted_inbound_connection
3838
{
3939
$id = (int64) arg0;
4040
$addr = str(arg1);
@@ -43,7 +43,7 @@ usdt:./build/src/bitcoind:net:evicted_inbound_connection
4343
printf("EVICTED conn to %s: id=%ld, type=%s, network=%d, established=%ld\n", $addr, $id, $conn_type, $network, arg4);
4444
}
4545

46-
usdt:./build/src/bitcoind:net:misbehaving_connection
46+
usdt:./build/bin/bitcoind:net:misbehaving_connection
4747
{
4848
$id = (int64) arg0;
4949
$message = str(arg1);

contrib/tracing/log_p2p_traffic.bt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN
55
printf("Logging P2P traffic\n")
66
}
77

8-
usdt:./build/src/bitcoind:net:inbound_message
8+
usdt:./build/bin/bitcoind:net:inbound_message
99
{
1010
$peer_id = (int64) arg0;
1111
$peer_addr = str(arg1);
@@ -15,7 +15,7 @@ usdt:./build/src/bitcoind:net:inbound_message
1515
printf("inbound '%s' msg from peer %d (%s, %s) with %d bytes\n", $msg_type, $peer_id, $peer_type, $peer_addr, $msg_len);
1616
}
1717

18-
usdt:./build/src/bitcoind:net:outbound_message
18+
usdt:./build/bin/bitcoind:net:outbound_message
1919
{
2020
$peer_id = (int64) arg0;
2121
$peer_addr = str(arg1);

contrib/tracing/log_utxos.bt

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
This script requires a 'bitcoind' binary compiled with eBPF support and the
1010
'utxocache' tracepoints. By default, it's assumed that 'bitcoind' is
11-
located in './build/src/bitcoind'. This can be modified in the script below.
11+
located in './build/bin/bitcoind'. This can be modified in the script below.
1212

1313
NOTE: requires bpftrace v0.12.0 or above.
1414
*/
@@ -22,7 +22,7 @@ BEGIN
2222
/*
2323
Attaches to the 'utxocache:add' tracepoint and prints additions to the UTXO set cache.
2424
*/
25-
usdt:./build/src/bitcoind:utxocache:add
25+
usdt:./build/bin/bitcoind:utxocache:add
2626
{
2727
$txid = arg0;
2828
$index = (uint32)arg1;
@@ -44,7 +44,7 @@ usdt:./build/src/bitcoind:utxocache:add
4444
/*
4545
Attaches to the 'utxocache:spent' tracepoint and prints spents from the UTXO set cache.
4646
*/
47-
usdt:./build/src/bitcoind:utxocache:spent
47+
usdt:./build/bin/bitcoind:utxocache:spent
4848
{
4949
$txid = arg0;
5050
$index = (uint32)arg1;
@@ -66,7 +66,7 @@ usdt:./build/src/bitcoind:utxocache:spent
6666
/*
6767
Attaches to the 'utxocache:uncache' tracepoint and uncache UTXOs from the UTXO set cache.
6868
*/
69-
usdt:./build/src/bitcoind:utxocache:uncache
69+
usdt:./build/bin/bitcoind:utxocache:uncache
7070
{
7171
$txid = arg0;
7272
$index = (uint32)arg1;

contrib/valgrind.supp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# dependencies that cannot be fixed in-tree.
33
#
44
# Example use:
5-
# $ valgrind --suppressions=contrib/valgrind.supp build/src/test/test_bitcoin
5+
# $ valgrind --suppressions=contrib/valgrind.supp build/bin/test_bitcoin
66
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
7-
# --show-leak-kinds=all build/src/test/test_bitcoin
7+
# --show-leak-kinds=all build/bin/test_bitcoin
88
#
99
# To create suppressions for found issues, use the --gen-suppressions=all option:
1010
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
1111
# --show-leak-kinds=all --gen-suppressions=all --show-reachable=yes \
12-
# --error-limit=no build/src/test/test_bitcoin
12+
# --error-limit=no build/bin/test_bitcoin
1313
#
1414
# Note that suppressions may depend on OS and/or library versions.
1515
# Tested on:

doc/benchmarking.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and lock analysis.
1818

1919
After compiling bitcoin-core, the benchmarks can be run with:
2020

21-
build/src/bench/bench_bitcoin
21+
build/bin/bench_bitcoin
2222

2323
The output will look similar to:
2424
```
@@ -40,7 +40,7 @@ The output will look similar to:
4040
Help
4141
---------------------
4242

43-
build/src/bench/bench_bitcoin -h
43+
build/bin/bench_bitcoin -h
4444

4545
To print the various options, like listing the benchmarks without running them
4646
or using a regex filter to only run certain benchmarks.

doc/build-osx.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ cmake --build build --target deploy
201201

202202
## Running Bitcoin Core
203203

204-
Bitcoin Core should now be available at `./build/src/bitcoind`.
205-
If you compiled support for the GUI, it should be available at `./build/src/qt/bitcoin-qt`.
204+
Bitcoin Core should now be available at `./build/bin/bitcoind`.
205+
If you compiled support for the GUI, it should be available at `./build/bin/bitcoin-qt`.
206206

207207
The first time you run `bitcoind` or `bitcoin-qt`, it will start downloading the blockchain.
208208
This process could take many hours, or even days on slower than average systems.
@@ -232,8 +232,8 @@ tail -f $HOME/Library/Application\ Support/Bitcoin/debug.log
232232
## Other commands:
233233

234234
```shell
235-
./build/src/bitcoind -daemon # Starts the bitcoin daemon.
236-
./build/src/bitcoin-cli --help # Outputs a list of command-line options.
237-
./build/src/bitcoin-cli help # Outputs a list of RPC commands when the daemon is running.
238-
./build/src/qt/bitcoin-qt -server # Starts the bitcoin-qt server mode, allows bitcoin-cli control
235+
./build/bin/bitcoind -daemon # Starts the bitcoin daemon.
236+
./build/bin/bitcoin-cli --help # Outputs a list of command-line options.
237+
./build/bin/bitcoin-cli help # Outputs a list of RPC commands when the daemon is running.
238+
./build/bin/bitcoin-qt -server # Starts the bitcoin-qt server mode, allows bitcoin-cli control
239239
```

doc/build-unix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ This example lists the steps necessary to setup and build a command line only di
188188
cmake -B build
189189
cmake --build build
190190
ctest --test-dir build
191-
./build/src/bitcoind
191+
./build/bin/bitcoind
192192

193193
If you intend to work with legacy Berkeley DB wallets, see [Berkeley DB](#berkeley-db) section.

doc/developer-notes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@ which includes known Valgrind warnings in our dependencies that cannot be fixed
475475
in-tree. Example use:
476476

477477
```shell
478-
$ valgrind --suppressions=contrib/valgrind.supp build/src/test/test_bitcoin
478+
$ valgrind --suppressions=contrib/valgrind.supp build/bin/test_bitcoin
479479
$ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
480-
--show-leak-kinds=all build/src/test/test_bitcoin --log_level=test_suite
481-
$ valgrind -v --leak-check=full build/src/bitcoind -printtoconsole
480+
--show-leak-kinds=all build/bin/test_bitcoin --log_level=test_suite
481+
$ valgrind -v --leak-check=full build/bin/bitcoind -printtoconsole
482482
$ ./build/test/functional/test_runner.py --valgrind
483483
```
484484

doc/fuzzing.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $ cmake --preset=libfuzzer
1111
# macOS users: If you have problem with this step then make sure to read "macOS hints for
1212
# libFuzzer" on https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md#macos-hints-for-libfuzzer
1313
$ cmake --build build_fuzz
14-
$ FUZZ=process_message build_fuzz/src/test/fuzz/fuzz
14+
$ FUZZ=process_message build_fuzz/bin/fuzz
1515
# abort fuzzing using ctrl-c
1616
```
1717

@@ -35,7 +35,7 @@ If you specify a corpus directory then any new coverage increasing inputs will b
3535

3636
```sh
3737
$ mkdir -p process_message-seeded-from-thin-air/
38-
$ FUZZ=process_message build_fuzz/src/test/fuzz/fuzz process_message-seeded-from-thin-air/
38+
$ FUZZ=process_message build_fuzz/bin/fuzz process_message-seeded-from-thin-air/
3939
INFO: Seed: 840522292
4040
INFO: Loaded 1 modules (424174 inline 8-bit counters): 424174 [0x55e121ef9ab8, 0x55e121f613a6),
4141
INFO: Loaded 1 PC tables (424174 PCs): 424174 [0x55e121f613a8,0x55e1225da288),
@@ -79,7 +79,7 @@ of the test. Just make sure to use double-dash to distinguish them from the
7979
fuzzer's own arguments:
8080
8181
```sh
82-
$ FUZZ=address_deserialize_v2 build_fuzz/src/test/fuzz/fuzz -runs=1 fuzz_corpora/address_deserialize_v2 --checkaddrman=5 --printtoconsole=1
82+
$ FUZZ=address_deserialize_v2 build_fuzz/bin/fuzz -runs=1 fuzz_corpora/address_deserialize_v2 --checkaddrman=5 --printtoconsole=1
8383
```
8484
8585
## Fuzzing corpora
@@ -90,7 +90,7 @@ To fuzz `process_message` using the [`bitcoin-core/qa-assets`](https://github.co
9090
9191
```sh
9292
$ git clone https://github.com/bitcoin-core/qa-assets
93-
$ FUZZ=process_message build_fuzz/src/test/fuzz/fuzz qa-assets/fuzz_corpora/process_message/
93+
$ FUZZ=process_message build_fuzz/bin/fuzz qa-assets/fuzz_corpora/process_message/
9494
INFO: Seed: 1346407872
9595
INFO: Loaded 1 modules (424174 inline 8-bit counters): 424174 [0x55d8a9004ab8, 0x55d8a906c3a6),
9696
INFO: Loaded 1 PC tables (424174 PCs): 424174 [0x55d8a906c3a8,0x55d8a96e5288),
@@ -134,7 +134,7 @@ Patience is useful; even with improved throughput, libFuzzer may need days and
134134
more slowly with sanitizers enabled, but a crash should be reproducible very
135135
quickly from a crash case)
136136
- run the fuzzer with the case number appended to the seed corpus path:
137-
`FUZZ=process_message build_fuzz/src/test/fuzz/fuzz
137+
`FUZZ=process_message build_fuzz/bin/fuzz
138138
qa-assets/fuzz_corpora/process_message/1bc91feec9fc00b107d97dc225a9f2cdaa078eb6`
139139
140140
## Submit improved coverage
@@ -189,7 +189,7 @@ $ cmake --build build_fuzz
189189
# try compiling using: AFL_NO_X86=1 cmake --build build_fuzz
190190
$ mkdir -p inputs/ outputs/
191191
$ echo A > inputs/thin-air-input
192-
$ FUZZ=bech32 ./AFLplusplus/afl-fuzz -i inputs/ -o outputs/ -- build_fuzz/src/test/fuzz/fuzz
192+
$ FUZZ=bech32 ./AFLplusplus/afl-fuzz -i inputs/ -o outputs/ -- build_fuzz/bin/fuzz
193193
# You may have to change a few kernel parameters to test optimally - afl-fuzz
194194
# will print an error and suggestion if so.
195195
```
@@ -216,7 +216,7 @@ $ cmake -B build_fuzz \
216216
-DSANITIZERS=address,undefined
217217
$ cmake --build build_fuzz
218218
$ mkdir -p inputs/
219-
$ FUZZ=process_message ./honggfuzz/honggfuzz -i inputs/ -- build_fuzz/src/test/fuzz/fuzz
219+
$ FUZZ=process_message ./honggfuzz/honggfuzz -i inputs/ -- build_fuzz/bin/fuzz
220220
```
221221
222222
Read the [Honggfuzz documentation](https://github.com/google/honggfuzz/blob/master/docs/USAGE.md) for more information.

doc/multiprocess.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ make -C depends NO_QT=1 MULTIPROCESS=1
2121
HOST_PLATFORM="x86_64-pc-linux-gnu"
2222
cmake -B build --toolchain=depends/$HOST_PLATFORM/toolchain.cmake
2323
cmake --build build
24-
build/src/bitcoin-node -regtest -printtoconsole -debug=ipc
25-
BITCOIND=$(pwd)/build/src/bitcoin-node build/test/functional/test_runner.py
24+
build/bin/bitcoin-node -regtest -printtoconsole -debug=ipc
25+
BITCOIND=$(pwd)/build/bin/bitcoin-node build/test/functional/test_runner.py
2626
```
2727

2828
The `cmake` build will pick up settings and library locations from the depends directory, so there is no need to pass `-DWITH_MULTIPROCESS=ON` as a separate flag when using the depends system (it's controlled by the `MULTIPROCESS=1` option).

0 commit comments

Comments
 (0)