fix ASan not linking on macOS

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-05-05 18:04:28 +05:00
parent 4f58197edb
commit 799813c0ba
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -130,7 +130,7 @@ if (DEBUG_ADDRESS_SANITIZER)
$<${USE_ASAN_COMPILE_OPTIONS}:-fno-omit-frame-pointer>
$<${USE_ASAN_COMPILE_OPTIONS}:-fno-sanitize-recover=null>
)
link_libraries("asan" "ubsan")
add_link_options($<${USE_ASAN_COMPILE_OPTIONS}:-fsanitize=address,undefined>)
else()
message(STATUS "Address Sanitizer not available on compiler ${CMAKE_CXX_COMPILER_ID}")
endif()