You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ga...@apache.org on 2018/05/03 04:21:53 UTC
[trafficserver] branch master updated: Option to enable stand-alone
Leak Sanitizer
This is an automated email from the ASF dual-hosted git repository.
gancho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 09ea78f Option to enable stand-alone Leak Sanitizer
09ea78f is described below
commit 09ea78fa6c55b793c46c616d1365ba68b0f18374
Author: Gancho Tenev <ga...@apache.org>
AuthorDate: Wed May 2 19:29:34 2018 -0700
Option to enable stand-alone Leak Sanitizer
If leak detection is needed without the Address Sanitizer slowdown.
---
configure.ac | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/configure.ac b/configure.ac
index de25bac..5992bc4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,15 @@ AC_ARG_ENABLE([asan],
)
AC_MSG_RESULT([$enable_asan])
+# Enable LSAN in stand-alone mode for the builds
+AC_MSG_CHECKING([whether to enable lsan])
+AC_ARG_ENABLE([lsan],
+ [AS_HELP_STRING([--enable-lsan],[enable stand-alone Leak Sanitizer])],
+ [],
+ [enable_lsan=no]
+)
+AC_MSG_RESULT([$enable_lsan])
+
# Enable TSAN for the builds
AC_MSG_CHECKING([whether to enable tsan])
AC_ARG_ENABLE([tsan],
@@ -982,6 +991,15 @@ if test "x${enable_asan}" = "xyes"; then
TS_ADDTO(AM_CXXFLAGS, [-fno-omit-frame-pointer -fsanitize=address])
fi
+# Flags for LSAN stand-alone mode
+if test "x${enable_lsan}" = "xyes"; then
+ if test "x${enable_asan}" = "xyes"; then
+ AC_ERROR([ASAN already specified, --enable-lsan is meant only for lsan stand-alone mode])
+ fi
+ TS_ADDTO(AM_CFLAGS, [-fno-omit-frame-pointer -fsanitize=leak])
+ TS_ADDTO(AM_CXXFLAGS, [-fno-omit-frame-pointer -fsanitize=leak])
+fi
+
# Flags for TSAN
if test "x${enable_tsan}" = "xyes"; then
TS_ADDTO(AM_CFLAGS, [-fsanitize=thread])
--
To stop receiving notification emails like this one, please contact
gancho@apache.org.