1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 20:40:08 +00:00

👷 adjusted flags for Clang sanitizer

we are overrding the CXXFLAGS provided by travis in order to use gcc's libstdc++
This commit is contained in:
Niels Lohmann 2017-08-25 22:34:00 +02:00
parent 268f5a3d0a
commit 5e7acbf05e
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -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 "${CMAKE_CXX_FLAGS} -g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer")
set(CMAKE_CXX_FLAGS "-g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer")
endif()
endif()