Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | AX_CHECK_LINK_FLAG([-fsanitize=address], | ||||
[asan_failed=yes]) | [asan_failed=yes]) | ||||
AX_CHECK_COMPILE_FLAG([-fno-omit-frame-pointer], | AX_CHECK_COMPILE_FLAG([-fno-omit-frame-pointer], | ||||
[CXXFLAGS="$CXXFLAGS -fno-omit-frame-pointer"], | [CXXFLAGS="$CXXFLAGS -fno-omit-frame-pointer"], | ||||
[asan_failed=yes]) | [asan_failed=yes]) | ||||
if test "x$asan_failed" = xyes; then | if test "x$asan_failed" = xyes; then | ||||
AC_MSG_ERROR("ASAN is not supported") | AC_MSG_ERROR("ASAN is not supported") | ||||
fi | fi | ||||
# fix linkage in MacOs | |||||
[LIBTOOL_APP_LDFLAGS="$LIBTOOL_APP_LDFLAGS -fsanitize=address"], | |||||
fi | fi | ||||
if test "x$enable_tsan" = xyes; then | if test "x$enable_tsan" = xyes; then | ||||
enable_debug=yes | enable_debug=yes | ||||
tsan_failed=no | tsan_failed=no | ||||
AX_CHECK_COMPILE_FLAG([-fsanitize=thread], | AX_CHECK_COMPILE_FLAG([-fsanitize=thread], | ||||
[CXXFLAGS="$CXXFLAGS -fsanitize=thread"], | [CXXFLAGS="$CXXFLAGS -fsanitize=thread"], | ||||
[tsan_failed=yes]) | [tsan_failed=yes]) | ||||
▲ Show 20 Lines • Show All 1,106 Lines • Show Last 20 Lines |