From e59be892d234135179dd7c3b072f8f12a41b6e1a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 18 Apr 2024 16:49:57 -0400 Subject: 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. --- config/flags.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3