From 4f5c345817dbc660aca3479f646b66b53d4ca2af Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 26 Aug 2017 08:20:37 +0200 Subject: [PATCH] :construction_worker: run sanitizer another time to check if it works --- .travis.yml | 2 ++ test/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bcdc633ab..fd610f9db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c99b29aed..6404df33e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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()