Permalink
Browse files

Build debug builds with address sanitizer

  • Loading branch information...
lpereira committed Dec 9, 2017
1 parent 44c925e commit 305c4eb9d4b1b6a233ba0c01242c87f2d853e874
Showing with 2 additions and 1 deletion.
  1. +2 −1 CMakeLists.txt
View
@@ -12,7 +12,8 @@ SET( CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" )
include(GNUInstallDirs)
if(${CMAKE_BUILD_TYPE} MATCHES [Dd]ebug)
set(HARDINFO_DEBUG 1)
set(HARDINFO_DEBUG 1)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")
endif()
if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Linux")

0 comments on commit 305c4eb

Please sign in to comment.