From 8f9f2521a01020ac55096f7d386d9d021081d2ce Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 18 Aug 2019 01:59:48 -0400 Subject: [PATCH] disable sanitizer recovery in UBSan debug builds This makes it harder to miss that an error occurred and avoids spamming output. There should never be a single error, so it doesn't make sense to gather as many errors as possible when a single error is already a serious issue that would need to be fixed. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4cec832..bcf334e 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,8 @@ ifeq ($(CONFIG_CXX_ALLOCATOR),true) endif ifeq ($(CONFIG_UBSAN),true) - CFLAGS += -fsanitize=undefined - CXXFLAGS += -fsanitize=undefined + CFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined + CXXFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined endif ifeq (,$(filter $(CONFIG_SEAL_METADATA),true false))