summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-18 16:49:57 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 13:00:34 -0400
commite59be892d234135179dd7c3b072f8f12a41b6e1a (patch)
tree77187b56e7060d2cde7d15a191608d8ae9ba55a3
parent9dc954f168e225a8044c99c2b267572ea228c456 (diff)
downloadbfs-e59be892d234135179dd7c3b072f8f12a41b6e1a.tar.xz
config: Fix ${SAN} on BSD make
This seems to have hit some BSD make limitation, making it set `SAN := y` unconditionally for some reason. Breaking up the expression fixes it.
-rw-r--r--config/flags.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/flags.mk b/config/flags.mk
index 48f1a08..1043779 100644
--- a/config/flags.mk
+++ b/config/flags.mk
@@ -74,7 +74,8 @@ export TSAN_CFLAGS=${TSAN_CFLAGS,${_TSAN}}
export UBSAN_CFLAGS=${UBSAN_CFLAGS,${_UBSAN}}
SAN_CFLAGS,y := -fno-sanitize-recover=all
-SAN := ${NOT,${NOR,${_ASAN},${_LSAN},${_MSAN},${_TSAN},${_UBSAN}}}
+NO_SAN := ${NOR,${_ASAN},${_LSAN},${_MSAN},${_TSAN},${_UBSAN}}
+SAN := ${NOT,${NO_SAN}}
export SAN_CFLAGS=${SAN_CFLAGS,${SAN}}
# MSAN and TSAN both need all code to be instrumented