From fae7a1c18803675e70b9bf66575e1e0a6e01f6f6 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sat, 3 Oct 2020 10:54:28 +0200 Subject: fuzz: Configure check for main function --- src/test/fuzz/fuzz.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src') diff --git a/src/test/fuzz/fuzz.cpp b/src/test/fuzz/fuzz.cpp index 1e1807d734..753cfffdcb 100644 --- a/src/test/fuzz/fuzz.cpp +++ b/src/test/fuzz/fuzz.cpp @@ -12,15 +12,6 @@ const std::function G_TEST_LOG_FUN{}; -// Decide if main(...) should be provided: -// * AFL needs main(...) regardless of platform. -// * macOS handles __attribute__((weak)) main(...) poorly when linking -// against libFuzzer. See https://github.com/bitcoin/bitcoin/pull/18008 -// for details. -#if defined(__AFL_COMPILER) || !defined(MAC_OSX) -#define PROVIDE_MAIN_FUNCTION -#endif - #if defined(PROVIDE_MAIN_FUNCTION) static bool read_stdin(std::vector& data) { -- cgit v1.2.3