Skip to content

Commit 56ace90

Browse files
committed
Fix fuzz binary compilation under windows
1 parent b805dbb commit 56ace90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/test/00_setup_env_win64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export DPKG_ADD_ARCH="i386"
1313
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
1414
export RUN_FUNCTIONAL_TESTS=false
1515
export GOAL="deploy"
16-
export BITCOIN_CONFIG="--enable-reduce-exports --disable-fuzz-binary --disable-gui-tests --without-boost-process"
16+
export BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests --without-boost-process"
1717

1818
# Compiler for MinGW-w64 causes false -Wreturn-type warning.
1919
# See https://sourceforge.net/p/mingw-w64/bugs/306/

src/test/fuzz/fuzz.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
7272
}
7373

7474
#if defined(PROVIDE_MAIN_FUNCTION)
75-
__attribute__((weak)) int main(int argc, char** argv)
75+
int main(int argc, char** argv)
7676
{
7777
initialize();
7878
static const auto& test_one_input = *Assert(g_test_one_input);

0 commit comments

Comments
 (0)