👷 run sanitizer another time to check if it works

parent 8608f421
......@@ -49,6 +49,8 @@ matrix:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['clang-5.0', 'llvm-5.0-dev', 'ninja-build']
after_failure:
- make clang_sanitize -j4
# cppcheck
- os: linux
......
......@@ -5,7 +5,7 @@ option(JSON_NoExceptions "Build test suite without exceptions" OFF)
if(JSON_Sanitizer)
message(STATUS "Building test suite with Clang sanitizer")
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment