if(HAVE_ASAN)
add_compile_definitions(HAVE_ASAN)
add_compile_options(-fsanitize=address)
- link_libraries(asan)
+ link_libraries(-fsanitize=address)
check_flag(-fsanitize-recover=address IGNORE)
endif()
endif()
if(HAVE_UBSAN)
add_compile_definitions(HAVE_UBSAN)
add_compile_options(-fsanitize=undefined)
- link_libraries(ubsan)
+ link_libraries(-fsanitize=undefined)
check_flag(-fsanitize-recover=undefined IGNORE)
endif()
endif()