CMake: Pass -fsanitize=address to the linker when USE_ASAN

This commit is contained in:
Ty Lamontagne 2022-01-06 09:44:04 -05:00 committed by refractionpcsx2
parent 5b44f495ee
commit 4c3df1a963
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ list(APPEND PCSX2_DEFS
if (USE_ASAN)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
list(APPEND PCSX2_DEFS ASAN_WORKAROUND)
endif()