Skip to content

Commit

Permalink
Disable Visual C++ STL annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dedlocc committed Mar 23, 2024
1 parent fb87dda commit a8ba131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if(USE_SANITIZERS)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
message(STATUS "Enabling ASAN")
target_compile_options(tests PUBLIC /fsanitize=address)
target_compile_definitions(_DISABLE_STRING_ANNOTATION=1 _DISABLE_VECTOR_ANNOTATION=1)
else()
message(STATUS "Enabling USAN and ASAN")
target_compile_options(tests PUBLIC -fsanitize=undefined,address)
Expand Down

0 comments on commit a8ba131

Please # to comment.