From a892c9c806ed011f2a2d73103ce5711dc35a5b9c Mon Sep 17 00:00:00 2001 From: Spencer Wilson Date: Fri, 26 Jan 2024 15:46:42 -0500 Subject: [PATCH] Fix memory sanitizer compile flag --- .CMake/compiler_opts.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.CMake/compiler_opts.cmake b/.CMake/compiler_opts.cmake index 083529b32c..2b0aa31f85 100644 --- a/.CMake/compiler_opts.cmake +++ b/.CMake/compiler_opts.cmake @@ -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)