Skip to content

Commit

Permalink
cmake: Disable by default BUILD_BENCH and BUILD_FUZZ_BINARY
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed May 21, 2024
1 parent c66caee commit 81e0889
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ endif()

option(BUILD_TESTS "Build test_bitcoin executable." ON)
cmake_dependent_option(BUILD_GUI_TESTS "Build test_bitcoin-qt executable." ON "BUILD_GUI;BUILD_TESTS" OFF)
option(BUILD_BENCH "Build bench_bitcoin executable." ON)
option(BUILD_FUZZ_BINARY "Build fuzz binary." ON)
option(BUILD_BENCH "Build bench_bitcoin executable." OFF)
option(BUILD_FUZZ_BINARY "Build fuzz binary." OFF)
cmake_dependent_option(FUZZ "Build for fuzzing. Enabling this will disable all other targets and override BUILD_FUZZ_BINARY." OFF "NOT MSVC" OFF)

option(INSTALL_MAN "Install man pages." ON)
Expand Down
6 changes: 6 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"name": "ci-common",
"hidden": true,
"cacheVariables": {
"BUILD_BENCH": "ON",
"BUILD_FUZZ_BINARY": "ON",
"ENABLE_WALLET": "ON",
"WITH_SQLITE": "ON",
"WITH_BDB": "ON",
Expand Down Expand Up @@ -58,6 +60,8 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows",
"BUILD_GUI": "ON",
"BUILD_BENCH": "ON",
"BUILD_FUZZ_BINARY": "ON",
"WITH_QRENCODE": "OFF",
"WITH_NATPMP": "OFF"
}
Expand All @@ -76,6 +80,8 @@
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"BUILD_GUI": "ON",
"BUILD_BENCH": "ON",
"BUILD_FUZZ_BINARY": "ON",
"WITH_QRENCODE": "OFF",
"WITH_NATPMP": "OFF"
}
Expand Down
2 changes: 1 addition & 1 deletion ci/test/03_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if [ "$DOWNLOAD_PREVIOUS_RELEASES" = "true" ]; then
test/get_previous_releases.py -b -t "$PREVIOUS_RELEASES_DIR"
fi

BITCOIN_CONFIG_ALL=""
BITCOIN_CONFIG_ALL="-DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON"
if [ -z "$NO_DEPENDS" ]; then
BITCOIN_CONFIG_ALL="${BITCOIN_CONFIG_ALL} -DCMAKE_TOOLCHAIN_FILE=$DEPENDS_DIR/$HOST/toolchain.cmake"
fi
Expand Down

0 comments on commit 81e0889

Please sign in to comment.