aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Benjamin <danben@gmail.com>2021-02-18 13:25:30 -0500
committerDan Benjamin <danben@gmail.com>2021-02-18 17:35:24 -0500
commit56ace907b9b7b4544c95e2945dc07e217718a8e5 (patch)
treefb9b6320da08e4ebe600f595a28b5951b268c508
parentb805dbb0b9c90dadef0424e5b3bf86ac308e103e (diff)
Fix fuzz binary compilation under windows
-rw-r--r--ci/test/00_setup_env_win64.sh2
-rw-r--r--src/test/fuzz/fuzz.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/ci/test/00_setup_env_win64.sh b/ci/test/00_setup_env_win64.sh
index 3eea0a4565..1e68d2a61a 100644
--- a/ci/test/00_setup_env_win64.sh
+++ b/ci/test/00_setup_env_win64.sh
@@ -13,7 +13,7 @@ export DPKG_ADD_ARCH="i386"
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
export RUN_FUNCTIONAL_TESTS=false
export GOAL="deploy"
-export BITCOIN_CONFIG="--enable-reduce-exports --disable-fuzz-binary --disable-gui-tests --without-boost-process"
+export BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests --without-boost-process"
# Compiler for MinGW-w64 causes false -Wreturn-type warning.
# See https://sourceforge.net/p/mingw-w64/bugs/306/
diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp
index 45151258b3..edb270d437 100644
--- a/src/test/fuzz/fuzz.cpp
+++ b/src/test/fuzz/fuzz.cpp
@@ -72,7 +72,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
}
#if defined(PROVIDE_MAIN_FUNCTION)
-__attribute__((weak)) int main(int argc, char** argv)
+int main(int argc, char** argv)
{
initialize();
static const auto& test_one_input = *Assert(g_test_one_input);