Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Allow to overwrite sanitizer flags for userland
details: https://anonhg.NetBSD.org/src/rev/5c3ead565072
branches: trunk
changeset: 365155:5c3ead565072
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Aug 03 02:34:31 2018 +0000
description:
Allow to overwrite sanitizer flags for userland
Always define -fsanitize=${USE_SANITIZER} and
-fsanitize=${USE_LIBCSANITIZER} before other flags defined with
SANITIZERFLAGS and LIBCSANITIZERFLAGS.
This allows to overwrite rules that are parsed from left to right.
With the current approach it wasn't possible to disable some checks, as
they were reenabled again by the "-fsanitize=" argument.
diffstat:
share/mk/bsd.sys.mk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 7725ca3707c9 -r 5c3ead565072 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Fri Aug 03 02:29:35 2018 +0000
+++ b/share/mk/bsd.sys.mk Fri Aug 03 02:34:31 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.285 2018/07/25 23:34:25 kamil Exp $
+# $NetBSD: bsd.sys.mk,v 1.286 2018/08/03 02:34:31 kamil Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -141,13 +141,13 @@
.endif
.if ${MKSANITIZER:Uno} == "yes"
-SANITIZERFLAGS+= -fsanitize=${USE_SANITIZER}
+SANITIZERFLAGS:= -fsanitize=${USE_SANITIZER} ${SANITIZERFLAGS}
.else
SANITIZERFLAGS= # empty
.endif
.if ${MKLIBCSANITIZER:Uno} == "yes"
-LIBCSANITIZERFLAGS+= -fsanitize=${USE_LIBCSANITIZER}
+LIBCSANITIZERFLAGS:= -fsanitize=${USE_LIBCSANITIZER} ${LIBCSANITIZERFLAGS}
LIBCSANITIZERFLAGS+= -fno-sanitize=vptr # Unsupported in micro-UBSan
.else
LIBCSANITIZERFLAGS= # empty
Home |
Main Index |
Thread Index |
Old Index