Change in osmocom-bb[master]: virt_phy/build: add configure option to build with ASan/USBan

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri Feb 28 03:52:28 UTC 2020


Vadim Yanitskiy has submitted this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/17294 )

Change subject: virt_phy/build: add configure option to build with ASan/USBan
......................................................................

virt_phy/build: add configure option to build with ASan/USBan

Change-Id: I23fc4e38632c02269b3895115ba4e3171cc212d1
---
M src/host/virt_phy/configure.ac
1 file changed, 11 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved



diff --git a/src/host/virt_phy/configure.ac b/src/host/virt_phy/configure.ac
index c8012c9..a2c2bf6 100644
--- a/src/host/virt_phy/configure.ac
+++ b/src/host/virt_phy/configure.ac
@@ -20,6 +20,17 @@
 
 dnl Checks for typedefs, structures and compiler characteristics
 
+AC_ARG_ENABLE(sanitize,
+	[AS_HELP_STRING(
+		[--enable-sanitize],
+		[Compile with address sanitizer enabled],
+	)], [sanitize=$enableval], [sanitize="no"])
+if test x"$sanitize" = x"yes"
+then
+	CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
+	CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
+fi
+
 AC_CONFIG_FILES([
  Makefile
  include/Makefile

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/17294
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I23fc4e38632c02269b3895115ba4e3171cc212d1
Gerrit-Change-Number: 17294
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200228/90dbebff/attachment.htm>


More information about the gerrit-log mailing list