diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ba2b359c6478..f26c8673b65a 100644 --- a/configure.ac +++ b/configure.ac @@ -1049,6 +1049,11 @@ AC_ARG_ENABLE(fetch-external, [Disables fetching external tarballs from web sources.]) ) +AC_ARG_ENABLE(fuzzers, + AS_HELP_STRING([--enable-fuzzers], + [Enables building libfuzzer targets for fuzz testing.]) +) + AC_ARG_ENABLE(pch, AS_HELP_STRING([--enable-pch], [Enables precompiled header support for C++. Forced default on Windows/VC build]) @@ -9206,6 +9211,20 @@ else fi AC_SUBST(ENABLE_BREAKPAD) +dnl ================================================================== +dnl libfuzzer +dnl ================================================================== +AC_MSG_CHECKING([whether to enable fuzzers]) +if test "$enable_fuzzers" != yes; then + AC_MSG_RESULT([no]) +else + AC_MSG_RESULT([yes]) + ENABLE_FUZZERS="TRUE" + AC_DEFINE(ENABLE_FUZZERS) + BUILD_TYPE="$BUILD_TYPE FUZZERS" +fi +AC_SUBST(ENABLE_FUZZERS) + dnl =================================================================== dnl Orcus dnl =================================================================== |