Skip to content

Commit

Permalink
Fix memory sanitizer compile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Jan 26, 2024
1 parent 2f4a25c commit a892c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .CMake/compiler_opts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-fsanitize=address)
set(SANITIZER_LD_FLAGS "-fsanitize=address")
elseif(USE_SANITIZER STREQUAL "Memory")
add_compile_options(-fsanitize=address)
add_compile_options(-fsanitize=memory)
set(SANITIZER_LD_FLAGS "-fsanitize=memory")
elseif(USE_SANITIZER STREQUAL "MemoryWithOrigins")
add_compile_options(-fsanitize=memory)
Expand Down

0 comments on commit a892c9c

Please sign in to comment.