File tree Expand file tree Collapse file tree
libs/server-sent-events/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,12 +137,13 @@ if (LD_BUILD_UNIT_TESTS)
137137 set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG } -D_GLIBCXX_DEBUG" )
138138 add_compile_definitions (LAUNCHDARKLY_USE_ASSERT )
139139 if (LD_TESTING_SANITIZERS)
140+ message (STATUS "LaunchDarkly: testing sanitizers enabled" )
140141 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
141142 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fsanitize=address -fsanitize=undefined -fsanitize=leak" )
142143 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
143144 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fsanitize=address" )
144145 elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
145- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fsanitize=address -fsanitize=leak" )
146+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fsanitize=address -fsanitize=leak -fsanitize=bounds-strict " )
146147 endif ()
147148 endif ()
148149 if (LD_BUILD_COVERAGE)
You can’t perform that action at this time.
0 commit comments