Skip to content

Commit 4a1e159

Browse files
committed
build: Define PROVIDE_FUZZ_MAIN_FUNCTION macro only when needed
1 parent 3ce40e6 commit 4a1e159

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,9 @@ else
12921292
QT_TEST_INCLUDES=SUPPRESS_WARNINGS($QT_TEST_INCLUDES)
12931293
fi
12941294

1295-
CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"
1295+
if test "$enable_fuzz_binary" = "yes"; then
1296+
CPPFLAGS="$CPPFLAGS -DPROVIDE_FUZZ_MAIN_FUNCTION"
1297+
fi
12961298
fi
12971299

12981300
if test "$enable_wallet" != "no"; then

0 commit comments

Comments
 (0)