From d69f2f3abb8b03067ec34ef732f43cf8eae29b82 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 25 Feb 2026 21:27:02 +0100 Subject: [PATCH] better flags for ASAN and UBSAN compile with -O1 and -fno-omit-frame-pointer -fno-common for ASAN --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 642b563e4..fcd52de19 100644 --- a/src/Makefile +++ b/src/Makefile @@ -270,13 +270,13 @@ endif ifdef USEASAN # compile with asan -opts+=-fsanitize=address +opts+=-O1 -fsanitize=address -fno-omit-frame-pointer -fno-common libs+=-fsanitize=address endif ifdef USEUBSAN -# compile with asan -opts+=-fsanitize=undefined +# compile with ubsan +opts+=-O1 -fsanitize=undefined -fno-omit-frame-pointer libs+=-fsanitize=undefined endif