Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Reset SANITIZERFLAGS when specified NOSANITIZER / M...



details:   https://anonhg.NetBSD.org/src/rev/a3e911d45b9f
branches:  trunk
changeset: 833422:a3e911d45b9f
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun Jun 24 19:35:12 2018 +0000

description:
Reset SANITIZERFLAGS when specified NOSANITIZER / MKSANITIZER=no

This allows passing additional sanitizer specifig flags from the ./build.sh
level, like: -V SANITIZERFLAGS="-fsanitize-memory-track-origins" for MSan.

diffstat:

 share/mk/bsd.sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fbd9c2f21dc7 -r a3e911d45b9f share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Sun Jun 24 19:27:26 2018 +0000
+++ b/share/mk/bsd.sys.mk       Sun Jun 24 19:35:12 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.283 2018/06/21 11:24:38 kamil Exp $
+#      $NetBSD: bsd.sys.mk,v 1.284 2018/06/24 19:35:12 kamil Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -143,7 +143,7 @@
 .if ${MKSANITIZER:Uno} == "yes"
 SANITIZERFLAGS+=       -fsanitize=${USE_SANITIZER}
 .else
-SANITIZERFLAGS+=       # empty
+SANITIZERFLAGS=                # empty
 .endif
 
 



Home | Main Index | Thread Index | Old Index