mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 00:49:53 +00:00
[fuzz] exclude -fno-rtti when fuzzer is enabled (#3166)
This commit is contained in:
+6
-1
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user