File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,27 @@ tristate_option(WITH_USDT
71
71
option (BUILD_TESTS "Build test_bitcoin executable." ON )
72
72
option (BUILD_BENCH "Build bench_bitcoin executable." ON )
73
73
cmake_dependent_option(BUILD_FUZZ_BINARY "Build fuzz binary." ON "NOT MSVC" OFF )
74
+ cmake_dependent_option(FUZZ "Build for fuzzing. Enabling this will disable all other targets and override BUILD_FUZZ_BINARY." OFF "NOT MSVC" OFF )
75
+
76
+ if (FUZZ)
77
+ message (WARNING "FUZZ=ON will disable all other targets and force BUILD_FUZZ_BINARY=ON." )
78
+ set (BUILD_DAEMON OFF )
79
+ set (BUILD_CLI OFF )
80
+ set (BUILD_TX OFF )
81
+ set (BUILD_UTIL OFF )
82
+ set (BUILD_UTIL_CHAINSTATE OFF )
83
+ set (BUILD_SHARED OFF )
84
+ set (BUILD_BITCOINKERNEL_LIB OFF )
85
+ set (BUILD_WALLET_TOOL OFF )
86
+ set (WITH_NATPMP OFF )
87
+ set (WITH_MINIUPNPC OFF )
88
+ set (WITH_ZMQ OFF )
89
+ set (WITH_EXTERNAL_SIGNER OFF )
90
+ set (BUILD_TESTS OFF )
91
+ set (BUILD_BENCH OFF )
92
+ set (WITH_GUI no )
93
+ set (BUILD_FUZZ_BINARY ON )
94
+ endif ()
74
95
75
96
option (INSTALL_MAN "Install man pages." ON )
76
97
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function(create_test_config)
22
22
set_configure_variable(BUILD_UTIL BUILD_BITCOIN_UTIL)
23
23
set_configure_variable(BUILD_WALLET_TOOL BUILD_BITCOIN_WALLET)
24
24
set_configure_variable(BUILD_DAEMON BUILD_BITCOIND_TRUE)
25
+ set_configure_variable(FUZZ ENABLE_FUZZ)
25
26
set_configure_variable(WITH_ZMQ ENABLE_ZMQ)
26
27
set_configure_variable(ENABLE_EXTERNAL_SIGNER ENABLE_EXTERNAL_SIGNER)
27
28
set_configure_variable(ENABLE_TRACING ENABLE_USDT_TRACEPOINTS)
You can’t perform that action at this time.
0 commit comments