You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea3a97f
Browse filesBrowse the repository at this point in the historyBrowse files
AC_MSG_CHECKING([whether a program links with -fsanitize=address])
3736
3737
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3737
3738
[AC_MSG_RESULT([yes])],
3738
3739
[AC_MSG_RESULT([no])
3739
3740
AC_MSG_ERROR([cannot link with -fsanitize=address: the compiler does not support AddressSanitizer or its runtime library is not installed; see config.log])])
3740
-
],
3741
-
[AC_MSG_RESULT([no])])
3741
+
])
3742
3742
3743
3743
AC_MSG_CHECKING([for --with-hwaddress-sanitizer])
3744
3744
AC_ARG_WITH(
@@ -3747,8 +3747,9 @@ AC_ARG_WITH(
3747
3747
[--with-hwaddress-sanitizer],
3748
3748
[enable HWAddressSanitizer memory error detector, 'hwasan' (default is no)]
3749
3749
)],
3750
-
[
3751
-
AC_MSG_RESULT([$withval])
3750
+
[], [with_hwaddress_sanitizer=no])
3751
+
AC_MSG_RESULT([$with_hwaddress_sanitizer])
3752
+
AS_VAR_IF([with_hwaddress_sanitizer], [no], [], [
3752
3753
hwasan_flags="-fsanitize=hwaddress"
3753
3754
# x86-64 lacks address tagging, so HWASan needs the page aliasing mode there.
AC_MSG_ERROR([cannot link with $hwasan_flags: the compiler does not support HWAddressSanitizer or its runtime library is not installed; see config.log])])
3766
-
],
3767
-
[AC_MSG_RESULT([no])])
3767
+
])
3768
3768
3769
3769
AC_MSG_CHECKING([for --with-memory-sanitizer])
3770
3770
AC_ARG_WITH(
@@ -3773,17 +3773,17 @@ AC_ARG_WITH(
3773
3773
[--with-memory-sanitizer],
3774
3774
[enable MemorySanitizer allocation error detector, 'msan' (default is no)]
AC_MSG_CHECKING([whether a program links with -fsanitize=memory])
3781
3782
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3782
3783
[AC_MSG_RESULT([yes])],
3783
3784
[AC_MSG_RESULT([no])
3784
3785
AC_MSG_ERROR([cannot link with -fsanitize=memory: the compiler does not support MemorySanitizer or its runtime library is not installed; see config.log])])
AC_MSG_ERROR([cannot link with -fsanitize=undefined: the compiler does not support UndefinedBehaviorSanitizer or its runtime library is not installed; see config.log])])
3805
-
],
3806
-
[
3807
-
AC_MSG_RESULT([no])
3808
-
with_ubsan="no"
3809
3808
])
3810
3809
3811
3810
AC_MSG_CHECKING([for --with-thread-sanitizer])
@@ -3815,8 +3814,11 @@ AC_ARG_WITH(
3815
3814
[--with-thread-sanitizer],
3816
3815
[enable ThreadSanitizer data race detector, 'tsan' (default is no)]
AC_MSG_ERROR([cannot link with -fsanitize=thread: the compiler does not support ThreadSanitizer or its runtime library is not installed; see config.log])])
0 commit comments