diff options
Diffstat (limited to 'cmake/debug_cflags')
-rw-r--r-- | cmake/debug_cflags | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/debug_cflags b/cmake/debug_cflags new file mode 100644 index 0000000..d383256 --- /dev/null +++ b/cmake/debug_cflags @@ -0,0 +1,4 @@ +# vim:ft=cmake +set(DEBUG_FLAGS "-O0 -g3 -fsanitize=address -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/misc/blacklist.txt -fno-omit-frame-pointer") +set(CMAKE_C_FLAGS_DEBUG ${DEBUG_FLAGS}) +set(CMAKE_CXX_FLAGS_DEBUG ${DEBUG_FLAGS}) |