better flags for ASAN and UBSAN

compile with -O1 and -fno-omit-frame-pointer
-fno-common for ASAN
This commit is contained in:
alufolie91 committed 2026-02-25 21:27:02 +01:00
1 parent 2e699ab7a4
commit d69f2f3abb
1 file changed
+3 -3
+3 -3
View File
@@ -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