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 b94fdb7
Browse filesBrowse the repository at this point in the historyBrowse files
AC_MSG_CHECKING([whether a program links with -fsanitize=address])
3531
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3532
+
[AC_MSG_RESULT([yes])],
3533
+
[AC_MSG_RESULT([no])
3534
+
AC_MSG_ERROR([cannot link with -fsanitize=address: the compiler does not support AddressSanitizer or its runtime library is not installed; see config.log])])
],[AC_MSG_ERROR([The selected compiler doesn't support hardware address sanitizer])])
3556
+
AC_MSG_CHECKING([whether a program links with $hwasan_flags])
3557
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3558
+
[AC_MSG_RESULT([yes])],
3559
+
[AC_MSG_RESULT([no])
3560
+
AC_MSG_ERROR([cannot link with $hwasan_flags: the compiler does not support HWAddressSanitizer or its runtime library is not installed; see config.log])])
],[AC_MSG_ERROR([The selected compiler doesn't support memory sanitizer])])
3575
+
AC_MSG_CHECKING([whether a program links with -fsanitize=memory])
3576
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3577
+
[AC_MSG_RESULT([yes])],
3578
+
[AC_MSG_RESULT([no])
3579
+
AC_MSG_ERROR([cannot link with -fsanitize=memory: the compiler does not support MemorySanitizer or its runtime library is not installed; see config.log])])
3569
3580
],
3570
3581
[AC_MSG_RESULT([no])])
3571
3582
@@ -3581,6 +3592,11 @@ AC_MSG_RESULT([$withval])
3581
3592
BASECFLAGS="-fsanitize=undefined $BASECFLAGS"
3582
3593
LDFLAGS="-fsanitize=undefined $LDFLAGS"
3583
3594
with_ubsan="yes"
3595
+
AC_MSG_CHECKING([whether a program links with -fsanitize=undefined])
3596
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3597
+
[AC_MSG_RESULT([yes])],
3598
+
[AC_MSG_RESULT([no])
3599
+
AC_MSG_ERROR([cannot link with -fsanitize=undefined: the compiler does not support UndefinedBehaviorSanitizer or its runtime library is not installed; see config.log])])
3584
3600
],
3585
3601
[
3586
3602
AC_MSG_RESULT([no])
@@ -3599,6 +3615,11 @@ AC_MSG_RESULT([$withval])
3599
3615
BASECFLAGS="-fsanitize=thread $BASECFLAGS"
3600
3616
LDFLAGS="-fsanitize=thread $LDFLAGS"
3601
3617
with_tsan="yes"
3618
+
AC_MSG_CHECKING([whether a program links with -fsanitize=thread])
3619
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
3620
+
[AC_MSG_RESULT([yes])],
3621
+
[AC_MSG_RESULT([no])
3622
+
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