better flags for ASAN and UBSAN
compile with -O1 and -fno-omit-frame-pointer -fno-common for ASAN
This commit is contained in:
1 parent
2e699ab7a4
commit
d69f2f3abb
1 file changed
+3
-3
+3
-3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user