[fuzz] exclude -fno-rtti when fuzzer is enabled (#3166)

This commit is contained in:
Jonathan Hui
2018-10-16 01:14:16 -07:00
committed by GitHub
parent e18877210a
commit 3fc9b95f81
+6 -1
View File
@@ -233,7 +233,7 @@ AC_PATH_PROG(CMP, cmp)
#
PROSPECTIVE_CFLAGS="-Wall -Wextra -Wshadow -Werror -std=c99 -pedantic-errors"
PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -std=gnu++98 -Wno-c++14-compat -fno-exceptions -fno-rtti"
PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -std=gnu++98 -Wno-c++14-compat -fno-exceptions"
AC_CACHE_CHECK([whether $CC is Clang],
[nl_cv_clang],
@@ -320,6 +320,11 @@ AC_MSG_RESULT(${enable_fuzz_targets})
AM_CONDITIONAL([OPENTHREAD_ENABLE_FUZZ_TARGETS], [test "${enable_fuzz_targets}" = "yes"])
if test "${enable_fuzz_targets}" = "no" ; then
PROSPECTIVE_CXXFLAGS="-fno-rtti"
AX_CHECK_COMPILER_OPTIONS([C++], ${PROSPECTIVE_CXXFLAGS})
fi
# Address Sanitizer
AC_MSG_CHECKING([whether to build with Address Sanitizer support])