mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-04-19 09:06:57 -04:00
Add ASAN to Debug builds
This commit is contained in:
@@ -63,6 +63,8 @@ if(("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" MATCHES
|
||||
# set(CMAKE_C_FLAGS_RELEASE -O2)
|
||||
# CMake Debug default for GCC/Clang is "-g -DNDEBUG"
|
||||
# set(CMAKE_C_FLAGS_DEBUG -g3 -O0)
|
||||
# make use of ASAN
|
||||
set(CMAKE_C_FLAGS_DEBUG "-ggdb -fsanitize=undefined -fsanitize=address -fno-omit-frame-pointer")
|
||||
endif()
|
||||
if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||
# make sure we don't accidentally copy more than an int
|
||||
|
||||
Reference in New Issue
Block a user