mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
Fix fuzz binary compilation under windows
This commit is contained in:
parent
b805dbb0b9
commit
56ace907b9
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ export DPKG_ADD_ARCH="i386"
|
||||||
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
|
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
|
||||||
export RUN_FUNCTIONAL_TESTS=false
|
export RUN_FUNCTIONAL_TESTS=false
|
||||||
export GOAL="deploy"
|
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.
|
# Compiler for MinGW-w64 causes false -Wreturn-type warning.
|
||||||
# See https://sourceforge.net/p/mingw-w64/bugs/306/
|
# See https://sourceforge.net/p/mingw-w64/bugs/306/
|
||||||
|
|
|
@ -72,7 +72,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(PROVIDE_MAIN_FUNCTION)
|
#if defined(PROVIDE_MAIN_FUNCTION)
|
||||||
__attribute__((weak)) int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
initialize();
|
initialize();
|
||||||
static const auto& test_one_input = *Assert(g_test_one_input);
|
static const auto& test_one_input = *Assert(g_test_one_input);
|
||||||
|
|
Loading…
Add table
Reference in a new issue