-
Notifications
You must be signed in to change notification settings - Fork 38.7k
build: add bitcoind-release preset with only BUILD_DAEMON enabled with release build type
#31730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… with `release` build type When benchmarking IBD or reindex behavior we have to build bitcoind only, which currently looks like: cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_CLI=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DENABLE_EXTERNAL_SIGNER=OFF -DENABLE_WALLET=OFF -DINSTALL_MAN=OFF After this change we can simplify that to cmake --preset bitcoind-release
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31730. ReviewsSee the guideline for information on the review process. |
|
Seems easier to just call |
|
I can confirm that with git clean -fxd \
&& cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_WALLET=OFF \
&& cmake --build build --target bitcoindproduces basically the same output during build phase as: git clean -fxd \
&& cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_CLI=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DENABLE_EXTERNAL_SIGNER=OFF -DENABLE_WALLET=OFF -DINSTALL_MAN=OFF \
&& cmake --build buildThanks! |
As documented in bitcoin#31730
As documented in bitcoin#31730
As documented in bitcoin#31730
As documented in bitcoin#31730
758a93d doc: update translation generation cmake example (Lőrinc) Pull request description: While investigating #31730 I noticed that * the `dev-mode` preset already contained [`-DWITH_BDB=ON`](https://github.com/bitcoin/bitcoin/blob/master/CMakePresets.json#L83) and [`-DBUILD_GUI=ON`](https://github.com/bitcoin/bitcoin/blob/master/CMakePresets.json#L70); * the preset already contained a [default binary dir](https://github.com/bitcoin/bitcoin/blob/master/CMakePresets.json#L64) which we could use; * the command only runs on my Mac if we disable `USDT`, and `MULTIPROCESS` and on Linux also without `MULTIPROCESS`. ACKs for top commit: hebasto: ACK 758a93d. Tree-SHA512: f5bef99bff090f53dae04018f17e60655698fea23084f6a3d38affd830ca041d5c56466633206b63ae01e85c55b784d003e323b2de7c59028b595d4e8f50783c
When benchmarking IBD or reindex behavior we have to build bitcoind only, which currently looks like:
After this change we can simplify that to
You can validate the change by comparing the outputs of before and after:
vs
which will only contain a single
CMAKE_BUILD_TYPE="Release"(butCMAKE_BUILD_TYPE ...................... Releaseshould be present in both)