Build with asan

This commit is contained in:
momo5502
2025-03-19 06:45:33 +01:00
parent b6ed431ccc
commit 9cf61cb058
2 changed files with 9 additions and 3 deletions

View File

@@ -99,9 +99,8 @@ endif()
##########################################
if(MOMO_ENABLE_SANITIZER)
momo_add_c_and_cxx_compile_options(
-fsanitize=address
)
momo_add_c_and_cxx_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
endif()
##########################################