Skip to content

Commit

Permalink
cflags: enable various sanitizers in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco149 committed Jul 10, 2019
1 parent 787a537 commit 3b49620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cflags
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if [ -z $DBGINFO ]; then
cflags="$cflags -fno-asynchronous-unwind-tables"
cflags="$cflags -fno-stack-protector"
else
cflags="$cflags -g"
cflags="$cflags -g -fsanitize=address -fsanitize=leak "
cflags="$cflags -fsanitize=signed-integer-overflow -fsanitize=undefined -static-libasan"
fi
if [ $(uname) = "Darwin" ]; then
cflags="$cflags -Wl,-dead_strip"
Expand Down

0 comments on commit 3b49620

Please sign in to comment.