Changeset View
Changeset View
Standalone View
Standalone View
src/test/CMakeLists.txt
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | PRIVATE | ||||
../wallet/test/wallet_crypto_tests.cpp | ../wallet/test/wallet_crypto_tests.cpp | ||||
) | ) | ||||
endif() | endif() | ||||
add_executable(test_bitcoin_fuzzy EXCLUDE_FROM_ALL | add_executable(test_bitcoin_fuzzy EXCLUDE_FROM_ALL | ||||
test_bitcoin_fuzzy.cpp | test_bitcoin_fuzzy.cpp | ||||
) | ) | ||||
target_link_libraries(test_bitcoin_fuzzy server) | target_link_libraries(test_bitcoin_fuzzy server) | ||||
if("fuzzer" IN_LIST ENABLE_SANITIZERS) | |||||
target_compile_options(test_bitcoin_fuzzy PRIVATE -fsanitize=fuzzer) | |||||
target_link_libraries(test_bitcoin_fuzzy -fsanitize=fuzzer) | |||||
deadalnix: Does building that target without the sanitizer makes any sense at all? Also, are you sure that… | |||||
FabienAuthorUnsubmitted Done Inline ActionsThe reason for not setting the option by default is that there are 2 possible ways to use the executable for fuzzing:
Regarding your second question, there is no need for building anything else with the fuzzer sanitizer (see https://github.com/bitcoin/bitcoin/pull/16338). Fabien: The reason for not setting the option by default is that there are 2 possible ways to use the… | |||||
endif() |
Does building that target without the sanitizer makes any sense at all? Also, are you sure that it doesn't have all to be build with the sanitizer?