mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-03 16:30:42 +02:00
Merge #21226: build: Fix fuzz binary compilation under windows
56ace907b9b7b4544c95e2945dc07e217718a8e5 Fix fuzz binary compilation under windows (Dan Benjamin) Pull request description: Small change to allow the fuzz binary to compile under windows. Also removed --disable-fuzz-binary from the windows CI test. This fixes #21212. ACKs for top commit: MarcoFalke: review ACK 56ace907b9b7b4544c95e2945dc07e217718a8e5 the best bugfixes are the ones removing code Tree-SHA512: 6088fd955a5e511b5ca1b3eaa8469a889eb6d994c2827acac7695dac6e4e320a344b45f4015a2f279b16df0d4b23ec4df13304ae6315395ad2fe8c5b526cada4
This commit is contained in:
commit
6a680a6236
@ -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…
x
Reference in New Issue
Block a user