👷 run sanitizer another time to check if it works

This commit is contained in:
Niels Lohmann 2017-08-26 08:20:37 +02:00
parent 8608f42187
commit 4f5c345817
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,8 @@ matrix:
apt: apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0'] sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['clang-5.0', 'llvm-5.0-dev', 'ninja-build'] packages: ['clang-5.0', 'llvm-5.0-dev', 'ninja-build']
after_failure:
- make clang_sanitize -j4
# cppcheck # cppcheck
- os: linux - os: linux

View file

@ -5,7 +5,7 @@ option(JSON_NoExceptions "Build test suite without exceptions" OFF)
if(JSON_Sanitizer) if(JSON_Sanitizer)
message(STATUS "Building test suite with Clang sanitizer") message(STATUS "Building test suite with Clang sanitizer")
if(NOT MSVC) if(NOT MSVC)
set(CMAKE_CXX_FLAGS "-g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer") set(CMAKE_CXX_FLAGS "-std=c++11 -g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer")
endif() endif()
endif() endif()