Enable ASAN

This commit is contained in:
Curt Spark 2025-11-20 23:13:15 +00:00
parent 39cefab611
commit 538dd63266
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(notcurses REQUIRED IMPORTED_TARGET notcurses)
pkg_check_modules(notcurses++ REQUIRED IMPORTED_TARGET notcurses++)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
add_executable(cursen)
target_link_libraries(cursen PRIVATE PkgConfig::notcurses PkgConfig::notcurses++)