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:30:23 +01:00
1 parent 1e51365cad
commit 1ec29c1c94
1 file changed
+3 -3
+3 -3
View File
@@ -269,13 +269,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