summaryrefslogtreecommitdiffstats
path: root/config/flags.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-26 17:54:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-26 17:54:15 -0400
commit4ded7c6b1508f22189049539c94be2930f20364d (patch)
tree2765e804798fadf1541df46393bb6dcd59383571 /config/flags.mk
parente061b6da5ee46a334169d4e6a52e49857ae22f55 (diff)
downloadbfs-4ded7c6b1508f22189049539c94be2930f20364d.tar.xz
config: Just use NOT to implement NOR
Diffstat (limited to 'config/flags.mk')
-rw-r--r--config/flags.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/flags.mk b/config/flags.mk
index ee13f06..837c30f 100644
--- a/config/flags.mk
+++ b/config/flags.mk
@@ -75,12 +75,13 @@ export TSAN_CFLAGS=${TSAN_CFLAGS,${_TSAN}}
export UBSAN_CFLAGS=${UBSAN_CFLAGS,${_UBSAN}}
SAN_CFLAGS,y := -fno-sanitize-recover=all
-NO_SAN := ${NOR,${_ASAN},${_LSAN},${_MSAN},${_TSAN},${_UBSAN}}
-SAN := ${NOT,${NO_SAN}}
+INSANE := ${NOT,${_ASAN}${_LSAN}${_MSAN}${_TSAN}${_UBSAN}}
+SAN := ${NOT,${INSANE}}
export SAN_CFLAGS=${SAN_CFLAGS,${SAN}}
# MSAN and TSAN both need all code to be instrumented
-NOLIBS ?= ${NOT,${NOR,${_MSAN},${_TSAN}}}
+YESLIBS := ${NOT,${_MSAN}${_TSAN}}
+NOLIBS ?= ${NOT,${YESLIBS}}
export XNOLIBS=${NOLIBS}
# gcov only intercepts fork()/exec() with -std=gnu*