Travis: Added Clang AddressSanitizer and UndefinedBehaviorSanitizer

This commit is contained in:
Benoit Blanchon
2017-01-01 21:29:38 +01:00
parent c5388cf8e7
commit b923e8f4df
4 changed files with 17 additions and 1 deletions

View File

@@ -18,4 +18,8 @@ if(${COVERAGE})
set(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
endif()
if(${SANITIZE})
set(CMAKE_CXX_FLAGS "-fsanitize=address,undefined")
endif()
add_subdirectory(test)